in reply to Is there a way to determine if use strict; is in effect?

$ perl my $gotit = eval q{ $do_i_got_strict_r975539 = 1; } ; my $err = $@; $gotit and warn q{I dont got strict vars}; not($gotit) and $err and warn q{I do got strict vars}; __END__ I dont got strict vars at - line 3. $ perl use strict; my $gotit = eval q{ $do_i_got_strict_r975539 = 1; } ; my $err = $@; $gotit and warn q{I dont got strict vars}; not($gotit) and $err and warn q{I do got strict vars}; __END__ I do got strict vars at - line 5.

http://perl5.git.perl.org/perl.git/blob/HEAD:/lib/strict.t
http://perl5.git.perl.org/perl.git/blob/HEAD:/t/lib/strict/refs
http://perl5.git.perl.org/perl.git/blob/HEAD:/t/lib/strict/subs
http://perl5.git.perl.org/perl.git/blob/HEAD:/t/lib/strict/vars