Query: perl::critic::policy::modules::requireperlversion
OS: centos
Section: 3
Links: centos man pages all man pages
Forums: unix linux community forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Perl::Critic::Policy::Modules::RequirePerlVersion(3) User Contributed Perl Documentation Perl::Critic::Policy::Modules::RequirePerlVersion(3)NAMEPerl::Critic::Policy::Modules::RequirePerlVersion - Require a "use 5.006;" or similar.AFFILIATIONThis policy is part of Perl::Critic::More, a bleeding edge supplement to Perl::Critic.DESCRIPTIONAs 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 "our" keyword 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: use 5.006; or use v5.6.0; 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.AUTHORChris Dolan <cdolan@cpan.org>COPYRIGHTCopyright (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. perl v5.16.3 2014-06-10 Perl::Critic::Policy::Modules::RequirePerlVersion(3)
Similar Topics in the Unix Linux Community |
---|
Wanted: old/broken USIII CPU Modules |
Beginner for Perl |
Perl-Critic 1.096 (Default branch) |
how to write a sub in Perl |
Perl Methods Calling |