Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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.
$"=$,,$_=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?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2015-10-04 22:13 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (105 votes), past polls