Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Checking to see if Taint mode is enabled

by Burak (Chaplain)
on Mar 17, 2007 at 12:23 UTC ( [id://605271]=note: print w/replies, xml ) Need Help??


in reply to Re: Checking to see if Taint mode is enabled
in thread Checking to see if Taint mode is enabled

You have to use that new global inside an eval for backwards compatibility:
sub is_tainted { my $taint; if ( $] >= 5.008 ) { $taint = eval '${^TAINT}'; } else { # some work around ... } $taint; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-23 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found