- or download this
%db = (
'scores' => {
...
'user5' => 190
}
);
- or download this
1st Place: user3 (232 Points)
2nd Place: user1 (200 Points)
3rd Place: user2 (190 Points)
4th Place: user5 (190 Points)
5th Place: user4 (187 Points)
- or download this
1st Place: user3 (232 Points)
2nd Place: user1 (200 Points)
3rd Place: user2 (190 Points), user5 (190 Points)
4th Place: user4 (187 Points)
- or download this
my @totals = sort { $db{'scores'}{$b} <=> $db{'scores'}{$a} } keys(%{$
+db{'scores'}});
...
4th Place: $totals[3]
5th Place: $totals[4]
|;