Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Sorting hash keys by sub hash values

by ZlR (Chaplain)
on Mar 31, 2010 at 14:02 UTC ( #832051=note: print w/ replies, xml ) Need Help??


in reply to Re: Sorting hash keys by sub hash values
in thread Sorting hash keys by sub hash values

ok, ok, so it wasn't so difficult to find a way to do it :
my $ref = $hash->{'card'} ; my @keys = sort { hex $ref->{$a}{'fa'} <=> hex $ref->{$b}{'fa'} } key +s % { $ref } ;
Thanks !

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2016-08-27 18:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (385 votes). Check out past polls.