Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 about the Monastery: (5)
As of 2014-07-10 00:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (198 votes), past polls