1Perl::Critic::Policy::TUiscesr::CPornothriiPbbeiurttlUe:sd:eCBPraeisrteli(c3D:)o:cPuomleinctya:t:iToincs::ProhibitUseBase(3)
2
3
4

NAME

6       Perl::Critic::Policy::Tics::ProhibitUseBase - do not use base.pm
7

VERSION

9       version 0.010
10

DESCRIPTION

12         use base qw(Baseclass);
13
14       You've seen that a hundred times, right?  That doesn't mean that it's a
15       good idea.  It screws with $VERSION, it alters (for the worse) the
16       exceptions reported by failure-to-require, it doesn't let you call the
17       base class's "import" method, it pushes to @INC rather than replacing
18       it, and it uses and documents interactions with fields, which can lead
19       one to believe that fields are even remotely relevant to modern (or
20       any!) development of Perl classes.
21
22       There are a lot of ways around using "base".  Pick one.
23

PERL VERSION

25       This library should run on perls released even a long time ago.  It
26       should work on any version of perl released in the last five years.
27
28       Although it may work on older versions of perl, no guarantee is made
29       that the minimum required version will not be increased.  The version
30       may be increased for any reason, and there is no promise that patches
31       will be accepted to lower the minimum required perl.
32

WARNING

34       This policy caused a bit of controversy, largely in this form:
35
36         These behaviors are either correct or can be worked around, and using base.pm
37         protects you from the problem of remembering to load prereqs and from
38         setting @INC at runtime.
39
40       These are true statements.  My chosen workaround for all these problems
41       is to not use base.pm.  That doesn't mean it's a good idea for you, or
42       anyone else.  Heck, it doesn't mean it's a good idea for me, either.
43       It's just my preference.  As with all Perl::Critic policies, you should
44       decide whether it's right for you.
45

AUTHOR

47       Ricardo SIGNES <cpan@semiotic.systems>
48
50       This software is copyright (c) 2007 by Ricardo SIGNES.
51
52       This is free software; you can redistribute it and/or modify it under
53       the same terms as the Perl 5 programming language system itself.
54
55
56
57perl v5.36.0                    Pe2r0l2:3:-C0r1i-t2i0c::Policy::Tics::ProhibitUseBase(3)
Impressum