Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by Aristotle (Chancellor)
on Sep 07, 2002 at 11:25 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://195862]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-25 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found