Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Custom "sort" routine

by slatibart (Sexton)
on Feb 09, 2009 at 16:02 UTC ( #742470=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    .com.fj
    .com.sb
    ...
    .com.co
    .com.mv
    .coop
    
  2. or download this
    .com.co
    .com.fj
    ...
    .com.nf
    .com.sb
    .coop
    
  3. or download this
      @list= sort { my ($sub1,$tld1)=split /\./,$a; my ($sub2,$tld2)= spli
    +t /\./,$b;  $tld1  cmp $tld2  } @list;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://742470]
Approved by Corion
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2018-07-17 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (377 votes). Check out past polls.

    Notices?