Keep It Simple, Stupid | |
PerlMonks |
Re^2: Last undefines a for loop's itererator?by BigLug (Chaplain) |
on Nov 12, 2005 at 21:03 UTC ( [id://508017]=note: print w/replies, xml ) | Need Help?? |
Rather than using $i as your iterator, use the default $_. Then assign it's value to your 'custom iterator' inside the foreach.
In Section
Seekers of Perl Wisdom
|
|