Perl Monk, Perl Meditation | |
PerlMonks |
Custom "sort" routineby slatibart (Sexton) |
on Feb 09, 2009 at 16:02 UTC ( [id://742470]=perlquestion: print w/replies, xml ) | Need Help?? |
slatibart has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
i have a list of top level domains which also have sub tlds.
Normal sort produces me a list like that
but this would be the appreciated sorting First, the toplevel, then the sub tld. My ideas was to start with this code : But didn't worked as expected. Where is my code wrong ? Thanks
Back to
Seekers of Perl Wisdom
|
|