Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: fast hash search

by ioannis (Vicar)
on May 20, 2006 at 00:06 UTC ( #550621=note: print w/ replies, xml ) Need Help??

in reply to fast hash search

Here is solution, for there could be more then one value for key that matches $str in a HoH.

# The could be more then one value for key, # when you search for key $st, in a HoH. my $st = 'alamo'; my @values = map {$_->{$st}} grep {$_->{$st}} @{$h}{keys %$hash};

Comment on Re: fast hash search
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2015-07-06 09:07 GMT
Find Nodes?
    Voting Booth?

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

    Results (70 votes), past polls