use Regexp::List, put the generated regex into $word_regex
my $count = ($count = $text) =~ s/$word_regex//g;
horrible?
In reply to Re: Counting the frequency of words in a string
by cez
in thread Counting the frequency of words in a string
by cez
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |