|
|
| P is for Practical | |
| PerlMonks |
delete hash key while hash in useby rsiedl (Friar) |
| on Jul 26, 2006 at 22:07 UTC ( [id://563938]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.rsiedl has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks, Can anyone tell me if it is possible to delete a hash key/value while running a foreach on that hash? Here is an example to demo what I'm trying to do: This returns: 11 :: reagen 13 :: 26 :: danielBut I would like to remove the id as well...? Cheers, Reagen
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||