Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: String sorting in Perl

by markdavis87 (Novice)
on Jun 04, 2014 at 18:23 UTC ( [id://1088713]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @sorted_data = sort { length $a <=> length $b || $count_hash{b} <=>
    + $count_hash{$a} } keys %count_hash;
    
  2. or download this
    my @sorted_data = sort { length $a <=> length $b || $count_hash{$b} <=
    +>
    + $count_hash{$a} } keys %count_hash;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-19 21:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found