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
Enoch was right!
Enjoy the last years of Rome.
In reply to Re^3: Array got modified!
by Jenda
in thread Array got modified!
by exilepanda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |