I still don't understand why our "standard practice" doesn't include doing a "local $_" at the beginning of every sub... but then on the other hand, I guess it isn't all that common to get burned by $_ problems.
while (<FILE>) is the most common offender by far, but it is usually only used in the main body where it does no damage.
In reply to Re: implicit local $_ happens sometimes
by ikegami
in thread "$_" vs. $_
by argv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |