Help for this page

Select Code to Download


  1. or download this
    while (<>) {
        push @words, split /\s/;
    }
    
  2. or download this
    trigram frequencies in your text:
    iwentthere! 1
    ...
    there!shealso 1
    shealsowent 1
    alsowentthere. 1
    
  3. or download this
    @trigrams = ();
    
    ...
        print "$trigrams[$index] $trigramfrequency[$index]\n";
    }