Welcome to the Monastery | |
PerlMonks |
Re: Predefined Sortby krusty (Hermit) |
on Jun 20, 2008 at 16:30 UTC ( [id://693183]=note: print w/replies, xml ) | Need Help?? |
I'm having a bit of trouble understanding what you want your sort criteria to be? Near as I can tell you either want to sort in some type of reverse numeric order perhaps ignoring certain values OR you want to sort all ports in a list based on an order that you predefine. For sorting a list based on predefined order where your predefined order is stored in an array @predefined: For sorting in numeric reverse order:
If you are filtering out certain groups we'd have to stack this command with some type of grep. Hope this helps, Kris
In Section
Seekers of Perl Wisdom
|
|