That is not a valid approach. It may shut up P:::C but there are features like 
"our" in later versions which one can in best practices use. Do determine your 
minimum level and put that in. If P::C complains b/c you put use 5.8 in then it 
is borked
------Original Message------
From: Elliot Shank
To: [email protected]
Cc: [email protected]
Sent: Feb 18, 2009 9:46 PM
Subject: Re: Perl Critic and 5.6 vs. 5.8

Roger Hall wrote:
> Three-argument form of open used at line 351, column 4.  Three-argument 
> open is not available until perl 5.6.
[chop]
> 2. Does the applicable P::C::Policy take the prereq’d version into account?

Put a "use 5.005" or other version less than 5.006 at the top of your module 
and the policies should stop complaining.



Sent from my BlackBerry® smartphone with Nextel Direct Connect

Reply via email to