Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: sort hash of array by value

by shmem (Chancellor)
on Oct 01, 2007 at 23:11 UTC ( [id://642019]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %colorhash = ( CCgray => "0","0","0", CCwhite => "1","0","0", CCgrey => "0","2","0", CCBlue => "0","0","3", );
  2. or download this
    my %colorhash = ( 
      CCgray  => "0",
    ...
      CCBlue  => "0",
      "0"     => "3",
    );
    
  3. or download this
    my %colorhash = ( 
      CCgray  => [ "0","0","0" ], 
    ...
      CCgrey  => [ "0","2","0" ],
      CCBlue  => [ "0","0","3" ],
    );
    
  4. or download this
    my %colorhash = ( 
      CCgray  => [ 0, 0, 0 ], 
    ...
      CCgrey  => [ 0, 2, 0 ],
      CCBlue  => [ 0, 0, 3 ],
    );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (None)
    As of 2024-04-25 00:00 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found