a-1 a-2 a-3 .. a-n
and I want to sort on the numeric part using $a <=> $b But instead I jump thru hoops using a regex to get the numbers then save them in another array, etc etc.. I'm pretty sure this can be a 1-line sort? I appreciate the wisdom of the Monks as always!
In reply to How can I do a numeric sort on a substring? by misterperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |