laziness, impatience, and hubris | |
PerlMonks |
Re^5: Disabling runtime warnings in dynamic scope?by LanX (Saint) |
on Apr 26, 2018 at 13:13 UTC ( [id://1213603]=note: print w/replies, xml ) | Need Help?? |
I think two variables where confused here, $^W is dynamically scoped but can hold only one boolean state, not a variety of warning bits like ${^WARNING_BITS} . From perlvar
● $WARNING I suppose that ${^WARNING_BITS} * can be dynamically changed, but then only with great care (I wouldn't be surprised if implementation changed) The bits are supposed to be set by use warnings which is statically scoped, hence here are dragons!
Cheers Rolf
*) to answer my own suspicion, ${^WARNING_BITS} are only set at compile-time and undef at run-time!
In Section
Seekers of Perl Wisdom
|
|