![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Re: counting overlapping patternsby ikegami (Pope) |
on Feb 18, 2005 at 21:49 UTC ( #432534=note: print w/replies, xml ) | Need Help?? |
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
|
|