Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: simple string comparison for efficiency

by GrandFather (Saint)
on May 29, 2009 at 01:15 UTC ( #766788=note: print w/replies, xml ) Need Help??


in reply to Re^2: simple string comparison for efficiency
in thread simple string comparison for efficiency

Add the line:

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

as the third line of sub match.


True laziness is hard work

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://766788]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2022-12-02 09:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?