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"; }
In reply to Re: How to determine if 'strict' is enabled
by tobyink
in thread How to determine if 'strict' is enabled
by kcott
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |