Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Sorting hash of hashes by values

by tangent (Priest)
on Nov 15, 2013 at 23:12 UTC ( #1062820=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print "$value -> $key\n";
    
  2. or download this
    foreach my $key (sort { $HoH{0}{$a} <=> $HoH{0}{$b} } keys %{$HoH{0}} 
    +) {
        my $value = $HoH{0}{$key};
        print "$value -> $key\n";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1062820]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2016-12-05 11:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (80 votes). Check out past polls.