Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Hash element exists/delete

by eyepopslikeamosquito (Chancellor)
on Jan 22, 2013 at 11:40 UTC ( #1014635=note: print w/ replies, xml ) Need Help??


in reply to Re: Hash element exists/delete
in thread Hash element exists/delete

There's no need to for two nested loops. That will get really slow when %hash gets big.

"Doing linear scans over an associative array is like trying to club someone to death with a loaded Uzi" -- Larry Wall

See also Clubbing someone to death with a loaded Uzi blog by Dominus.


Comment on Re^2: Hash element exists/delete

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2015-07-28 05:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (252 votes), past polls