in reply to sort question
Update:$entry{$table}{A}{RANK} = R#3; $entry{$table}{C}{RANK} = R#2; $entry{$table}{B}{RANK} = R#1; @array = map { $_->[0] } sort { $b->[1] cmp $a->[1] } map { [ $_, $entry{$table}{$_}{RANK} ] } keys %{$entry{$table}}; print ">> @array <<\n"; __END__ >> A C B <<
--
Marco Antonio
Rio-PM
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: sort question
by rvosa (Curate) on May 17, 2005 at 18:51 UTC | |
by mrborisguy (Hermit) on May 17, 2005 at 18:59 UTC | |
by rvosa (Curate) on May 17, 2005 at 19:31 UTC | |
by rvosa (Curate) on May 17, 2005 at 19:02 UTC |