Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 surveying the Monastery: (5)
As of 2015-07-05 23:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls