Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    ++$freq{$_} for split /\s+/, $words;
    
    print "$_: $freq{$_}\n" for sort {$freq{$b} <=> $freq{$a}} keys %freq;
    
  2. or download this
    on: 5
    to: 5
    ...
    i'd: 1
    eventually: 1
    mostly: 1