No such thing as a small change | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Modifying an array while looping with foreach = not good. What about while looping though it with while? Similarly, what about modifying a hash (using delete) while looping with for/foreach or while? From a quick skim through the doc it doesn't appear to be an issue. I'll definitely keep in mind the shortcomings of this post in the future! Context is especially important when TIMTOWTDI! Thanks for the help! In reply to Re^2: Iterating through an array using multiple loops and removing array elements
by BiochemPhD
|
|