Octavian Rasnita wrote at Fri, 07 Jun 2002 21:54:02 +0200: > I want to make a script that sorts the values from a hash.
my @sorted_values = sort {$a <=> $b} values %hash; > > I want to make a "top with the most downloaded files". > > I know how to sort the hash by keys but I couldn't sort it by values. my @sorted_keys_by_values = sort {$hash{$a} <=> $hash{$b}} keys %hash; Greetings, Janek -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]