GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Perl::Critic::Policy::Modules::PerlMinimumVersion(3) User Contributed Perl Documentation Perl::Critic::Policy::Modules::PerlMinimumVersion(3)

Perl::Critic::Policy::Modules::PerlMinimumVersion - Enforce backward compatible code.

This policy is part of Perl::Critic::More, a bleeding edge supplement to Perl::Critic.

As Perl evolves, new desirable features get added. The best ones seem to break backward compatibility, unfortunately. This policy allows you to specify a mandatory compatibility version for your code.

For example, if you add the following to your .perlcriticrc file:

  [Modules::PerlMinimumVersion]
  version = 5.005

then any code that employs "our" will fail this policy, for example. By default, this policy enforces the current Perl version, which is a pretty weak statement.

This policy relies on Perl::MinimumVersion to do the heavy lifting. If that module is not installed, then this policy always passes.

Chris Dolan <cdolan@cpan.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.

2022-04-09 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.