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