in reply to Re: Counting the frequency of words in a string
in thread Counting the frequency of words in a string
use Regexp::List, put the generated regex into $word_regex
my $count = ($count = $text) =~ s/$word_regex//g;
horrible?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Counting the frequency of words in a string
by cez (Novice) on Dec 02, 2004 at 22:19 UTC | |
by Eimi Metamorphoumai (Deacon) on Dec 02, 2004 at 22:26 UTC |