Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Deleting Hash Entries while Iterating

by ariels (Curate)
on Jun 27, 2002 at 13:06 UTC ( [id://177698]=note: print w/replies, xml ) Need Help??


in reply to Deleting Hash Entries while Iterating

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://177698]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-23 12:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found