Help for this page

Select Code to Download


  1. or download this
    my %list_o_num = map {
                             if(exists $list_o_num{$_})
    ...
                         }
                     @list_o_num;
    
  2. or download this
    my %list_o_num;
    $list_o_num{$_}++ for @list_o_num;
    ...
    my @true_top_3 = (sort { $b <=> $a } keys %list_o_num)[0..2];
    
    print "T3: ", join(', ',@true_top_3), "\n";
    
  3. or download this
    #!/usr/bin/perl -wT
    use strict;
    ...
                                @list_o_num)[0..2];
    
    print "T3: ", join(', ',@true_top_3), "\n";