We don't bite newbies here... much | |
PerlMonks |
Re^3: Playing with non-localized $_ in nested loops.by gaal (Parson) |
on Aug 23, 2004 at 06:18 UTC ( [id://385014]=note: print w/replies, xml ) | Need Help?? |
for, map, and grep: these three constructs localize $_. But in fact, map and grep are more vulnerable than foreach, because they don't give you the choice of using a lexical as your aliased iterator (iterant?). I did mention this in the talk though I guess the emphasis is stronger when you have more than the slides :)
In Section
Seekers of Perl Wisdom
|
|