... and a local $^W = $my_bits doesn't change them at runtime for scopes further down ...
What do you mean? This works fine:
use strict; my $lasthash = { lastfunc => sub { last ; }, } ; sub lastfunc { last ; } sub test { # local ($^W) = 1 ; # Activate this line to display the warnings while(1) { lastfunc } ; while(1) { $lasthash->{lastfunc}->(); } ; } test() ;
In reply to Re^4: Disabling runtime warnings in dynamic scope?
by Veltro
in thread Disabling runtime warnings in dynamic scope?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |