29 Oct 2013 16:43:05 UTC
- Distribution: Perl-Critic-More
- Module version: 1.003
- Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Issues (7)
- Testers (1907 / 153 / 0)
- KwaliteeBus factor: 2
- 95.18% Coverage
- License: perl_5
- Activity24 month
- Download (34.25KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
Perl::Critic::Policy::Modules::RequirePerlVersion - Require a
use 5.006;or similar.
As Perl evolves, new desirable features get added. The best ones seem to break backward compatibility, unfortunately. As a favor to downstream developers, it's good to state explicitly which Perl version will not be able to parse your code.
For example, the
ourkeyword was first appeared in a stable Perl in version 5.6.0. Therefore, if your code employs
our, then you should have a line like this near the very top of your file:
The former is preferred as the latter can trigger v-string compatibility warnings. (If someone could please explain that to me, I'd really appreciate it!)
Additionally, it's good form to state that minimum version in your Makefile.PL or Build.PL file.
Chris Dolan <firstname.lastname@example.org>
Copyright (c) 2006-2008 Chris Dolan
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module.
Module Install Instructions
To install Perl::Critic::More, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Perl::Critic::More
For more information on module installation, please visit the detailed CPAN module installation guide.