Just a thought.my %param; foreach ( sort { $user_details{$a} cmp $user_details{$b} } keys %user_ +details ){ #this next line will clobber $param{user_name} each time through. #$param{user_name} = $user_details{$_}; #do your stuff. print "the key is $_\n"; print "the value is $user_details{$_}\n"; }
In reply to Re: Getting Keys of Hash from Values
by injunjoel
in thread Getting Keys of Hash from Values
by jesuashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |