Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Custom "sort" routine

by revdiablo (Prior)
on Feb 09, 2009 at 17:03 UTC ( [id://742487]=note: print w/replies, xml ) Need Help??


in reply to Custom "sort" routine

Are you sure you even need a custom sort? I don't get what you listed when I use the standard sort. I get the following:

.com.co .com.fj .com.mv .com.nf .com.sb .coop

Which is exactly what you said you wanted. Am I missing something in your example?

For reference, here is my code:

my @items = qw( .com.fj .com.sb .com.nf .com.co .com.mv .coop ); for (sort @items) { print "$_\n"; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-03-19 04:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found