in reply to Re: How do I sort a CSV file on multiple columns?
in thread How do I sort a CSV file on multiple columns?

The  <=> numeric comparison automatically numerifys to a decimal number before the comparison:

>perl -wMstrict -le "my @l = qw(10 010 0010 8 08 008 9 09 009 1 01 001); @l = sort { $a <=> $b } @l; print qq{@l}; " 1 01 001 8 08 008 9 09 009 10 010 0010