The + means it'll work on the double spaces after your punctuation.my @words = split(/\s+/, $content);
Now for the other part of the problem. I know there is an easier way than this but the only idea I have is to retrieve the first three elements of the area and then pop off the first element. Do it in a loop until all elements are gone leaving you every two and three word phrase.
In reply to Re: Word density
by sulfericacid
in thread Word density
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |