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

Re: How do I tell if strict, taint, etc are on?

by linux454 (Pilgrim)
on Mar 17, 2006 at 03:10 UTC ( [id://537375]=note: print w/replies, xml ) Need Help??


in reply to How do I tell if strict, taint, etc are on?

As for checking if use strict and use warnings has been used, try:
print "strict module loaded... ", exists($INC{'strict.pm'}) ? "yes" : "no", "\n"; print "warnings module loaded... ", exists($INC{'warnings.pm'}) ? "yes" : "no", "\n";
Others have addressed testing for Taint.

Update: fixed typo noticed by been42

Replies are listed 'Best First'.
Re^2: How do I tell if strict, taint, etc are on?
by been42 (Curate) on Mar 17, 2006 at 15:44 UTC
    A slight correction:

    print "strict module loaded... ", exists($INC{'strict.pm'}) ? "yes" : "no", "\n"; print "warnings module loaded... ", exists($INC{'warnings.pm'}) ? "yes" : "no", "\n";
      Thanks for catching that.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-03-28 13:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found