You really don't need a regular expression, and it's a bit expensive if you're sorting a largish array. Perhaps look at perlfunc:index, as in:
# $a =~ /:/ index($a, ":") >= 0
Not quite as pretty, but I imagine a bit faster...
In reply to Re: Genesis of a sort routine
by edan
in thread Genesis of a sort routine
by greenFox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |