|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: counting overlapping patternsby ikegami (Patriarch) |
| on Feb 18, 2005 at 16:49 UTC ( [id://432534]=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.
There's also the simple:
Unlike C's strlen, Perl's length doesn't loop, so this snippet is compliant with your request for no further looping.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||