![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re^2: Is it safe to append to the array you are iterating over (yes)by DrWhy (Chaplain) |
on Mar 15, 2013 at 22:39 UTC ( [id://1023788]=note: print w/replies, xml ) | Need Help?? |
I wouldn't be surprised now if even splice might not confuse the loop as long as you are splicing parts of the array that the loop iterator hasn't reached yet.
--DrWhy "If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."
In Section
Seekers of Perl Wisdom
|
|