1Perl::Critic::Policy::MUosdeurleCPsoe:nr:tlRr:ei:qbCuuritiretediEcnP:de:WrPilotlhDiOocncyeu:(m:3eM)notdautlieosn::RequireEndWithOne(3)
2
3
4
6 Perl::Critic::Policy::Modules::RequireEndWithOne - End each module with
7 an explicitly "1;" instead of some funky expression.
8
10 This Policy is part of the core Perl::Critic distribution.
11
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
21 This Policy is not configurable except for the standard options.
22
24 Chris Dolan "cdolan@cpan.org"
25
26 Some portions cribbed from
27 Perl::Critic::Policy::Modules::RequireExplicitPackage.
28
30 Copyright (c) 2005-2011 Chris Dolan and Imaginative Software Systems.
31 All 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.16.3 Perl::C2r0i1t4i-c0:6:-P0o9licy::Modules::RequireEndWithOne(3)