Thanks to all who were even beginning to consider this...:-)my $i=0; my @sorted_indexes=map {$_->[1]}sort{ $a->[0] <=> $b->[0] }map{[$_,$i+ ++]}@array; foreach my $d(@sorted_indexes){ print $d."\t".$array[$d]."\n"; }
In reply to Re: Remembering original order of an array
by seaver
in thread Remembering original order of an array
by seaver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |