1Perl::Critic::Policy::MUosdeurleCPsoe:nr:tlRr:ei:qbCuuritiretediEcnP:de:WrPilotlhDiOocncyeu:(m:3eM)notdautlieosn::RequireEndWithOne(3)
2
3
4

NAME

6       Perl::Critic::Policy::Modules::RequireEndWithOne - End each module with
7       an explicitly "1;" instead of some funky expression.
8

AFFILIATION

10       This Policy is part of the core Perl::Critic distribution.
11

DESCRIPTION

13       All files included via "use" or "require" must end with a true value to
14       indicate to the caller that the include was successful.  The standard
15       practice is to conclude your .pm files with "1;", but some authors like
16       to get clever and return some other true value like "return "Club
17       sandwich";".  We cannot tolerate such frivolity!  OK, we can, but we
18       don't recommend it since it confuses the newcomers.
19

CONFIGURATION

21       This Policy is not configurable except for the standard options.
22

AUTHOR

24       Chris Dolan "cdolan@cpan.org"
25
26       Some portions cribbed from
27       Perl::Critic::Policy::Modules::RequireExplicitPackage.
28
30       Copyright (c) 2005-2009 Chris Dolan and Jeffrey Ryan Thalhammer.  All
31       rights reserved.
32
33       This program is free software; you can redistribute it and/or modify it
34       under the same terms as Perl itself.  The full text of this license can
35       be found in the LICENSE file included with this module.
36
37
38
39perl v5.10.1               Perl::C2r0i1t0i-c1:1:-P1o2licy::Modules::RequireEndWithOne(3)
Impressum