Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: The High Price of Golf, and A Surprise

by Aristotle (Chancellor)
on Sep 07, 2002 at 11:25 UTC ( #195862=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -MO=Deparse,x7 -e'sort { $a cmp $b } @x'
    sort @x;
    -e syntax OK
    ...
    $ perl -MO=Deparse,x7 -e'sort { $b <=> $a } @x'
    sort @x;
    -e syntax OK
    
  2. or download this
    $ perl -MO=Deparse,x7 -e'sort { $a->[0] cmp $b->[0] } @x'
    sort {$$a[0] cmp $$b[0];} @x;
    -e syntax OK
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2014-07-31 23:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (255 votes), past polls