Help for this page

Select Code to Download


  1. or download this
    # foreach group of three words
          $hash{$word1 . ' ' . $word2}{$word3}++;
    
  2. or download this
    # foreach group of n words in array @n_words
          my $nth_word = pop @n_words;
          $hash{join ' ', @n_words}{$nth_word}++;