Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Perl Sorting One Liner

by kcott (Chancellor)
on May 07, 2013 at 11:12 UTC ( #1032460=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -Mstrict -Mwarnings -E '
        use constant { FIRST => 0, SECOND => 1, THIRD => 2 };
    ...
    A:C:1
    A:D:2
    A:D:1
    
  2. or download this
    $a->[LAST_NAME] cmp $b->[LAST_NAME] || $a->[FIRST_NAME] cmp $b->[FIRST
    +_NAME]
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1032460]
help
Chatterbox?
NodeReaper cleans and fillets

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2018-04-25 20:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?