Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Rosetta Code: Long List is Long -- oneliner

by Discipulus (Canon)
on Dec 01, 2022 at 08:00 UTC ( [id://11148471]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    cat lill01.txt  
    
    ...
    perl    94
    dromedary       70
    camel   50
    
  2. or download this
    perl -MO=Deparse -lane "$r{$F[0]}+=$F[1]}{print qq($_\t$r{$_})for sort
    +{$r{$b}<=>$r{$a}||$a cmp $b}keys %r"
    
    ...
        print "$_\t$r{$_}" foreach (sort {$a cmp $b unless $r{$b} <=> $r{$
    +a};} keys %r);
    }
    -e syntax OK
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-18 06:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found