Just another Perl shrine | |
PerlMonks |
Re^3: Array got modified!by Jenda (Abbot) |
on Oct 10, 2011 at 10:25 UTC ( [id://930575]=note: print w/replies, xml ) | Need Help?? |
Could you explain, in your own words, what does the while ( my $ele = <@arr> ) { do? Once you do, go check the docs! It may seem to do what you seem to want if you are unlucky enough and the @arr doesn't contain anything interesting to the diamond operator, but even then it's horribly inefficient. Jenda
In Section
Seekers of Perl Wisdom
|
|