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

Re: How to determine if 'strict' is enabled

by tobyink (Canon)
on Jun 12, 2023 at 09:34 UTC ( #11152804=note: print w/replies, xml ) Need Help??


in reply to How to determine if 'strict' is enabled

my $strict_enabled = do { my $code = sprintf( '$____DUMMY____%d = 1', 1_000_000 + int( rand 8_ +999_888 ) ); not eval( $code ); }; if ( $strict_enabled ) { print "strict vars\n"; } else { print "no strict vars\n"; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2023-12-04 19:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (25 votes). Check out past polls.

    Notices?