Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: future warnings

by Stevie-O (Friar)
on Jul 09, 2004 at 00:10 UTC ( #373009=note: print w/ replies, xml ) Need Help??


in reply to future warnings

This sounds like a pretty good idea (and one that's possibly workable, at that!) One alternative would be to invert your logic. Instead of

use warnings version => 5.008003;
to only get warnings introduced at or before 5.8.3, perhaps a
use warnings lastversion => 5.008003;
to only get the relevant warnings introduced, and
no warnings 'lastversion';
as the opposite. This means that newer code will implicitly support the new warnings (because it lacks a 'lastversion' declaration), while retrofitting old code to inhibit the new warnings (in case it causes a problem) is one line added to the top of the file. The already-lexical nature of 'use warnings' should take care of the rest.
--Stevie-O
$"=$,,$_=q>|\p4<6 8p<M/_|<('=> .q>.<4-KI<l|2$<6%s!<qn#F<>;$, .=pack'N*',"@{[unpack'C*',$_] }"for split/</;$_=$,,y[A-Z a-z] {}cd;print lc


Comment on Re: future warnings
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://373009]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2014-08-01 11:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (7 votes), past polls