in case there are more than one number matching like a-1-3 ?
Do you mean something like Sort::Key::Natural? See also How do I do a natural sort on an array?
In reply to Re^3: How can I do a numeric sort on a substring?
by haukex
in thread How can I do a numeric sort on a substring?
by misterperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |