use strict; $MyClass::foo = 'boink'; sub bar { no strict; # strict turned off for this sub } ... # strict again in effect
They live in files which are imported, like modules - but they act like switches and turn on and off certain flags at compile time, for their lexical scope.
There's no reason to turn strict or warnings off for a "working" version, once the "development" versions behave with them. Again: *no* *reason*. And in case you ask again - no, there is no reason, period.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In reply to Re^3: Controlling "use" statements
by shmem
in thread Controlling "use" statements
by nodice
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |