P is for Practical | |
PerlMonks |
Re: Using an array element as a loop iteratorby jethro (Monsignor) |
on Nov 07, 2013 at 18:12 UTC ( [id://1061607]=note: print w/replies, xml ) | Need Help?? |
foreach loops alias each element of the array into the loop variable. AFAIK this alias simply doesn't work with array elements. Since there is no alias happening in a c-style loop there is no problem
In Section
Seekers of Perl Wisdom
|
|