in reply to Perl sort
Assuming one line of your file contains something like:
your first map:12\t45
will transform this line into:map {chomp;[$_,split(/\t/)]}
With such data, comparing:["12\t45", 12, 45]
in your sort code block makes little sense.$a->[0] <=> $b->[0] || $a->[1] <=> $b->[1]
I would assume you probably want something like:
$a->[1] <=> $b->[1] or $a->[2] <=> $b->[2]
|
|---|