Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: counting overlapping patterns

by saintmike (Vicar)
on Feb 18, 2005 at 20:19 UTC ( #432495=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my $count  = 0;
        my $string = "AAAA";
    
        $count++ while $string =~ /\GAA/gc;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://432495]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2020-10-22 20:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (230 votes). Check out past polls.

    Notices?