the numeric part is at the beginning of the string
True, though I think it's noteworthy this requires a no warnings 'numeric' under warnings, e.g. my @sorted = sort { no warnings 'numeric'; $a <=> $b } @list;.
In reply to Re^2: How can I sort my array numerically on part of the string?
by haukex
in thread How can I sort my array numerically on part of the string?
by misterperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |