Also, I do need to understand where the data is stored or how to store the sorted data in an array.
Just assign to an array!
my @sorted = map { substr $_, 54 } sort map { do { no warnings qw{ uninitialized }; pack qq{A${width}NA*}, m{(.*\D)?(\d+)$}, $_; } } @data;
Simples!
Cheers,
JohnGG
In reply to Re^9: Sorting text-number values
by johngg
in thread Sorting text-number values
by merrymonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |