1Perl::Critic::Policy::MUosdeurlPeCesor:nl:t:Rr:eiCqbruuiittreiedcP:eP:rePlroVlleirDcsoyic:ou:nmM(eo3nd)tualteiso:n:RequirePerlVersion(3)
2
3
4
6 Perl::Critic::Policy::Modules::RequirePerlVersion - Require a "use
7 5.006;" or similar.
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. As a favor to
16 downstream developers, it's good to state explicitly which Perl version
17 will not be able to parse your code.
18
19 For example, the "our" keyword was first appeared in a stable Perl in
20 version 5.6.0. Therefore, if your code employs "our", then you should
21 have a line like this near the very top of your file:
22
23 use 5.006;
24
25 or
26
27 use v5.6.0;
28
29 The former is preferred as the latter can trigger v-string
30 compatibility warnings. (If someone could please explain that to me,
31 I'd really appreciate it!)
32
33 Additionally, it's good form to state that minimum version in your
34 Makefile.PL or Build.PL file.
35
37 Chris Dolan <cdolan@cpan.org>
38
40 Copyright (c) 2006-2008 Chris Dolan
41
42 This program is free software; you can redistribute it and/or modify it
43 under the same terms as Perl itself. The full text of this license can
44 be found in the LICENSE file included with this module.
45
46
47
48perl v5.30.1 Perl::Cr2i0t2i0c-:0:1P-o3l0icy::Modules::RequirePerlVersion(3)