in reply to Re: how to get the number of times a pattern matchedin thread how to get the number of times a pattern matched
You need:
my $count = () = $text =~ /g/g; [download]
MeowChow s aamecha.s a..a\u$&owag.print