... print "$_->[1]$_->[2]...\n" for sort { int $b->[1] <=> int $a->[1] } map { [ $_, split /::/, $games{$_}, 2 ] } keys %games; ...