Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: fast hash search

by ioannis (Monsignor)
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};

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://550621]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2017-11-21 07:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (296 votes). Check out past polls.

    Notices?