Help for this page

Select Code to Download


  1. or download this
    {
        local $, = "\n";
        print( ( sort { $hash{$b} <=> $hash{$a} } keys %hash )[0..9] );
    }
    
  2. or download this
    foreach my $key ( (sort {$hash{$b} <=> $hash{$a} } keys %hash )[0..9] 
    +) {
        print $key, "\n";
    }
    
  3. or download this
    sort { $hash{$b} <=> $hash{$a} or $a cmp $b } keys $hash