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!
Went to join the gridlock to see it
Held an eclipse party
Watched a live feed
I cn"t see tge kwubosd to amswr thus
I tried to see it, but 8000 miles of rock got in the way
Wanted to see it, but they wouldn't reschedule it
Read the book instead
Results (274 votes). Check out past polls.