in reply to Creating a two dimensional array and sorting by index
And then to clear it out: @things = ();my @things; push @things, [ $string, $index ]; # as many times as necessary for ( sort { $a->[1] <=> $b->[1] } @things ) { # do whatever with it, e.g. print: print "Index: $_->[1] String: $_->[0]\n"; }
jdporter
...porque es dificil estar guapo y blanco.
|
|---|