Think about Loose Coupling | |
PerlMonks |
Re: Last undefines a for loop's itererator?by ivancho (Hermit) |
on Nov 12, 2005 at 17:24 UTC ( [id://507989]=note: print w/replies, xml ) | Need Help?? |
after all, you wouldn't want every loop
or even to clobber up your $_, no? So it sounds logical that the control variable should be localized.. kaif, why don't you use first, from List::Util, if the snippet is small enough?
In Section
Seekers of Perl Wisdom
|
|