in reply to Re^2: Array got modified!
in thread Array got modified!
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Array got modified!
by exilepanda (Friar) on Oct 10, 2011 at 12:51 UTC | |
by Anonymous Monk on Oct 10, 2011 at 13:00 UTC | |
by exilepanda (Friar) on Oct 10, 2011 at 13:19 UTC | |
by Anonymous Monk on Oct 10, 2011 at 13:21 UTC | |
by choroba (Cardinal) on Oct 10, 2011 at 13:44 UTC | |
by exilepanda (Friar) on Oct 10, 2011 at 16:03 UTC |