Can I do it like this, since I don't know what the string is going to be just there order.
my @AoA = (
$string1 , 1 ,
$string2 , 5 ,
$string3 , 3 ,
);
print "@$_\n" for sort { $a->1 <=> $b->1 } @AoA;
@AoA = (); #free structure
Comment on Re: Re: Creating a two dimensional array and sorting by index