|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: counting overlapping patternsby betterworld (Curate) |
| on Feb 18, 2005 at 21:43 UTC ( [id://432618]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Why not let Perl do the incrementing itself?
$count = () = "AAAA" =~ m/(?=AA)/g;
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||