Help for this page

Select Code to Download


  1. or download this
    my %frequency;
    while(<>) {
        my @column = split ' ' or next;
        $frequency{$column[2]}++;
    }
    
  2. or download this
    {
        local($\, $,) = ("\n", "\t");  # tab delimited output
    ...
            print $_, $frequency{$_};
        }
    }
    
  3. or download this
    35324    4
    33227    3
    ...
    33011    1
    35537    1
    35606    1