Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 !


Comment on Re^2: Sorting hash keys by sub hash values
Download Code

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 musing on the Monastery: (8)
As of 2014-12-25 18:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (162 votes), past polls