http://www.perlmonks.org?node_id=1023508


in reply to Re^2: Is it safe to append to the array you are iterating over
in thread Is it safe to append to the array you are iterating over

I think that when the documentation says "don't do that", and you find that in a specific case it's not causing a problem, you're probably lucky by implementation, and not by guarantee. The behaviour may never change, but could change without notice.


Dave

  • Comment on Re^3: Is it safe to append to the array you are iterating over