回複:看看這個,估計也不管大用. But you nerver know...

If I understand you correctly, here is the solution:

use strict;
my ($A,$B,$C)=([1,2,4],[1,2,2],[1,2,3]);
my @outer=($A,$B,$C);
my @sorted=sort { $a->[0] <=> $b->[0] ||
                  $a->[1] <=> $b->[1] ||
                  $a->[2] <=> $b->[2] } @outer;
map { print "@$_n"; } @sorted;

請您先登陸,再發跟帖!