The stupid question is the question not asked | |
PerlMonks |
Re: Deleting Hash Entries while Iteratingby ariels (Curate) |
on Jun 27, 2002 at 13:06 UTC ( [id://177698]=note: print w/replies, xml ) | Need Help?? |
I suggest that the docs for each may say just what you're asking.
If just iterating over the list of keys of the hash (e.g. foreach (keys %hash)) then of course no limitations exist -- the list of keys is generated once at the start of the iteration, so deletion does nothing.
In Section
Seekers of Perl Wisdom
|
|