![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re: Test for the last element in a foreachby ikegami (Patriarch) |
on Aug 02, 2007 at 20:14 UTC ( [id://630383]=note: print w/replies, xml ) | Need Help?? |
In the CB, I presented:
Using this method, no change will be required to the body of your loop. $_ is still aliased to the array element as it normally is in a foreach loop. Changes to it will be reflected in the array.
In Section
Seekers of Perl Wisdom
|
|