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

All files included via "use" or "require" must end with a true value to indicate to the caller that the include was successful. The standard practice is to conclude your .pm files with "1;", but some authors like to get clever and return some other t...

THALJEF/Perl-Critic-1.126   (10 reviews) - 11 Aug 2015 06:48:47 GMT - Search in distribution

Perl::Critic::Policy::Lax::RequireEndWithTrueConst - ending your package with a simple, fun true value is okay

This policy behaves like Perl::Critic::Policy::Modules::RequireEndWithOne, but allows frivolity like ending with "Club sandwich". The return value must be the final statement of the module....

RJBS/Perl-Critic-Lax-0.011 - 11 Jul 2014 03:41:56 GMT - Search in distribution