... foreach my $k (@keywords){ my $matches_count = ( ($string =~ s/$k//ig ) ); ... [download]
In reply to Re: Count multiple pattern matches by Light Elf in thread Count multiple pattern matches by johnnywang