in reply to Re^2: Choosing "best" - sorting hashes issue
in thread Choosing "best" - sorting hashes issue

Ummm... in my case, since popularity is sorted in descending order and history needs to be sorted in ascending order, shouldn't it be:
$myhash{$b}[1] <=> $myhash{$a}[1] || $myhash{$a}[0] <=> $myhash{$b}[0]
?

In any event, thanks for suggesting the improvement. In my long-winded if-elsif chained version, I had one of the >'s reversed, leading to a very dirty bug.