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

Re: how to sort hash of array by value

by FunkyMonk (Chancellor)
on Oct 01, 2007 at 22:06 UTC ( [id://642011]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Data::Dumper;
    
    ...
     or $colorhash{$a}[1] <=> $colorhash{$b}[1]
     or $colorhash{$a}[2] <=> $colorhash{$b}[2];
    }
    
  2. or download this
    $VAR1 = [
              'CCgray',
    ...
              'CCgrey',
              'CCwhite'
            ];
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-25 13:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found