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

Re: Getting Keys of Hash from Values

by GrandFather (Saint)
on Nov 16, 2005 at 21:14 UTC ( #509198=note: print w/replies, xml ) Need Help??


in reply to Getting Keys of Hash from Values

It's not clear from your description just what you want to try an achieve. Could you show us sample contents of %user_details and what you expect %param to contain following the loop?

As shown %param will contain one value (the "largest" according to the sort criteria) with the key user_name. I doubt that that is what you want.

Note also that the sort is futile in this case. It has no useful effect on the behaviour of the loop nor on how things are stored in %param.


DWIM is Perl's answer to Gödel

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2022-05-21 02:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (76 votes). Check out past polls.

    Notices?