The first one doesn't really make sense to me, but there is a way you can disable strict 'vars' for specific areas of your code (I've never had a need for no strict 'vars'; before personally, usually no strict 'refs';). Note that all variables outside of the tiny scope (block) that the no strict ... is in is still under the enforcement of strict 'vars', ie. you need to pre-define before using them.
use warnings; use strict; { no strict 'vars'; $x = 10; # look Ma, no 'my'! print "$x\n"; }
In reply to Re: perl 5 suggestions?
by stevieb
in thread perl 5 suggestions?
by iaw4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |