Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Iterating over an hash while removing keys

by Anonymous Monk
on Feb 06, 2020 at 21:47 UTC ( #11112517=note: print w/replies, xml ) Need Help??


in reply to Re: Iterating over an hash while removing keys
in thread Iterating over an hash while removing keys

That is certainly what I would do in this case. And, if the size of the list becomes a problem, just have it break out of the first loop, get rid of the keys it's found so far, and start over.
  • Comment on Re^2: Iterating over an hash while removing keys

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2020-03-30 20:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    To "Disagree to disagree" means to:









    Results (176 votes). Check out past polls.

    Notices?