Add the line:

my $nCount = ($mask1 =~ tr/N//) + ($mask2 =~ tr/N//);

as the third line of sub match.


True laziness is hard work

In reply to Re^3: simple string comparison for efficiency by GrandFather
in thread simple string comparison for efficiency by CaptainF

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":