On or about Thu, May 17, 2001 at 05:25:52PM +0100, Simon Cozens typed:

>Or you could do it in two lines:
>
>my $i;
>my %rank = map { $_ => ++$i } sort {$scores{$a} <=> $scores{$b}} keys %scores;

But can you make it do:

1. 20
2. 17
2. 17
4. 15

etc.?

Roger

Reply via email to