counter = 0; @regex = qw( reg ex patterns ); for (@regex){ if (/\Q$_\E/){ $counter ++' } } print $counter; [download]
In reply to Re: number of matches by frank_2k4 in thread number of matches by Anonymous Monk