my $num = ($whole =~ s/$part/$part/g);
add an "i" to the end of the regex if you want to be case insensitive.
Is there another way?
In reply to RE: Count String Occurrences
by nate
in thread Count String Occurrences
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |