in reply to statistics of a large text
with:my $cgram = join " ", $unigrams[$i], $unigrams[$i+1], $unigrams[$i+2], +$unigrams[$i+3],$unigrams[$i+4];
The double quotes around the array slice also insert a single space between array elements ($").my $cgram = "@unigrams[ $i .. $i + 4]";
|
|---|