in reply to Re: How to count substrings in an array?in thread How to count substrings in an array?
... and you don't even need the '+' on the += operator:
>perl -wMstrict -lE
"my $s = 'abababa';
my $t = 'aba';
my $c = map /(?=$t)/g, qw(abababa ababa);
and you don't even need the '+' on the += operator:
Of course I don't. Much nicer!
Once (shame on you!)
Twice (shame on me!)
More often than I'd like to be
All the time
Just when answering stupid polls
Who you callin' a fool?
I refuse to vote in this ridiculous poll
Results (542 votes). Check out past polls.