Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Count multiple pattern matchesby pijll (Beadle) |
on Dec 07, 2004 at 16:39 UTC ( [id://412936]=note: print w/replies, xml ) | Need Help?? |
Have you tried to insert a study $string; outside the loop, before you do the first regex match? This should speed up the matches, especially if $string is very long.
for more information.
In Section
Seekers of Perl Wisdom
|
|