Don't ask to ask, just ask | |
PerlMonks |
Re: Hashes: Deleting elements while iteratingby Roger (Parson) |
on Sep 05, 2003 at 06:38 UTC ( [id://289116]=note: print w/replies, xml ) | Need Help?? |
You could replace
in the original code with a one-liner: Where the keyword "keys" returns a list of all the hash keys. The new version does not generate warnings.
In Section
Seekers of Perl Wisdom
|
|