However, the method given by Eimi Metamorphoumai is better.while ($doesntCountAll =~ /\s$pattern\s/g) { $count++; pos($doesntCountAll) -= 1; }
In reply to Re: while =~ consecutive matching problem
by TedPride
in thread while =~ consecutive matching problem
by p.s
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |