Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Getting Keys of Hash from Values

by GrandFather (Saint)
on Nov 16, 2005 at 21:14 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-03-29 11:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found