Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Sort on boredom

by petral (Curate)
on Mar 23, 2001 at 17:46 UTC ( #66696=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use Data::Dumper;
    ...
    
    print Data::Dumper->Dump([\@sorted], ['*sorted']);
    
  2. or download this
    perl -le '$,=", ";print sort { $#$b <=> $#$a or $a cmp $b}'\
            -e 'keys %{{ map {@$_ = (@$_, $_); $_=>1} @ARGV}};'\
     0 _ __ 0 __ __  0 0 00 @ % $ % ^ ^_
    
    
    result-> 0, __, %, $, 00, @, ^, ^_, _
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2020-11-28 14:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?