sub foo { local $_; my ($var1, $var2) = @_; ... }
in all my personal "production-level" code. (I'm an avid user of $_.) While this can result in a slight performance hit, I change my personal code around enough that have that template just makes me feel safer about using $_.
Just a suggestion. :)
In reply to Re: When is $_ local and when is it not?
by dragonchild
in thread When is $_ local and when is it not?
by iakobski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |