in reply to foreach gotcha!
The situation, interestingly enough, is to localize $_ within the called subroutine. I haven't gotten this to work yet, but David pointed me at an article by Mark-Jason Dominus called <cite> Seven Useful Uses of local</cite> that explains the solution. Pretty neat (or pretty horrible in that it's not default behavior--depends on how you look at it). ;)
*Randal, we miss you! You should come and give another talk sometime when you're in the City on a fourth Tuesday. :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: It was a $_ scoping issue!
by merlyn (Sage) on Sep 22, 2000 at 05:17 UTC |