http://www.perlmonks.org?node_id=1014635


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.