No such thing as a small change | |
PerlMonks |
Re: Getting Keys of Hash from Valuesby GrandFather (Saint) |
on Nov 16, 2005 at 21:14 UTC ( [id://509198]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|