Welcome to the Monastery | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
> What's wrong with getting a new iterator as long as the function is documented to reset it?
My approach is more generic because you don't need to delete the whole hash. You could probably also use a simple for loop and just next if the key doesn't exist anymore.
Cheers Rolf
In reply to Re^8: Iterating over hash while deleting elements (Best Practice)
by LanX
|
|