$s='finding related pages finding on the world wide web'; my $count=$s=~ m/finding/g; print $count;
I expect the result as 2.. becus "finding" exists two times in $s. but the output is 1. Why??
thanksIn reply to Re^4: counting inside the loop
by sarvan
in thread counting inside the loop
by sarvan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |