in reply to Re: Capturing occurrence counts via tr/// with variable interpolationin thread Capturing occurrence counts via tr/// with variable interpolation
$ans = () = $str =~ m/$SrchStr/g; [download]