As for the number of times a pattern appears in a string, I'd suggest: my $count = 0; ++$count while $string =~ /$pattern/g;
In reply to Re: Counting words..
by japhy
in thread Counting words..
by No-Lifer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |