my $count = $text =~ s/$word_regex//g;
(since destroying $text doesn't matter in my case)
In reply to Re^2: Counting the frequency of words in a string
by cez
in thread Counting the frequency of words in a string
by cez
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |