halecommarachel supplies no example data, so this point is a bit unclear, but I assume that the real data has elements that are a '-' (dash) rather than that contain dashes. E.g.,
qw(1 10 - 2 -3 20 - - 3 0 2 11 8 7);
rather than
qw/987-665-888 456-123-000 000-000-000 123-456-789/
Caveat Programmor.
In reply to Re^2: Numeric Sorting on Characters
by AnomalousMonk
in thread Numeric Sorting on Characters
by halecommarachel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |