You need:
my $count = () = $text =~ /g/g;
MeowChow s aamecha.s a..a\u$&owag.print
In reply to Re: Re: how to get the number of times a pattern matched
by MeowChow
in thread how to get the number of times a pattern matched
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |