in reply to When is $_ local and when is it not?
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. :)
|
---|