1Perl::Critic::Policy::MUosdeurlPeCesor:nl:t:Pr:eiCrbrluiMttieindci:mP:uePmroVlleirDcsoyic:ou:nmM(eo3nd)tualteiso:n:PerlMinimumVersion(3)
2
3
4
6 Perl::Critic::Policy::Modules::PerlMinimumVersion - Enforce backward
7 compatible code.
8
10 This policy is part of Perl::Critic::More, a bleeding edge supplement
11 to Perl::Critic.
12
14 As Perl evolves, new desirable features get added. The best ones seem
15 to break backward compatibility, unfortunately. This policy allows you
16 to specify a mandatory compatibility version for your code.
17
18 For example, if you add the following to your .perlcriticrc file:
19
20 [Modules::PerlMinimumVersion]
21 version = 5.005
22
23 then any code that employs "our" will fail this policy, for example.
24 By default, this policy enforces the current Perl version, which is a
25 pretty weak statement.
26
27 This policy relies on Perl::MinimumVersion to do the heavy lifting. If
28 that module is not installed, then this policy always passes.
29
31 Chris Dolan <cdolan@cpan.org>
32
34 Copyright (c) 2006-2008 Chris Dolan
35
36 This program is free software; you can redistribute it and/or modify it
37 under the same terms as Perl itself. The full text of this license can
38 be found in the LICENSE file included with this module.
39
40
41
42perl v5.16.3 Perl::Cr2i0t1i4c-:0:6P-o1l0icy::Modules::PerlMinimumVersion(3)