my $count = 0; my %hash = map {$_, $count++} @array; my @sort = sort { int($a) <=> int($b) } @array; my $flag = 0; for (@sort) { print ', ' if $flag++; print qq|"$_" came from | . '$array[' . $hash{$_} . ']'; }
--Dave
In reply to Re: How do I record in what order a sort was preformed
by redsquirrel
in thread How do I record in what order a sort was preformed
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |