in reply to Re^2: Sort array using a ranking system from separate hash
in thread Sort array using a ranking system from separate hash
like modifying this snippet from the perldoc accordingly?
# this sorts the %age hash by value instead of key # using an in-line function my @eldest = sort { $age{$b} <=> $age{$a} } keys %age;
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|