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

Re: Sorting hash

by Punitha (Priest)
on Feb 21, 2008 at 11:59 UTC ( [id://669252]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    
    my @Data;
    ...
        push(@Data,[$string,$listref,$count]);
    }
    print "METH:$_->[0]\tREF:$_->[1]\tCOUN:$_->[2]\n" for sort {$a->[0] cm
    +p $b->[0]} @Data;
    
  2. or download this
    __DATA__
    meth2, \@array1, 3
    ...
    meth1, \@array3, 8
    meth5, \@array4, 10
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2024-03-28 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found