Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Hamming Distance Between 2 Strings - Fast(est) Way?

by BrowserUk (Pope)
on Jul 08, 2011 at 19:46 UTC ( #913409=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $seq1 = 'ACGTACGTACGTACGT';;
    $seq2 = 'TCGATCGATCGATCGA';;
    ...
    
    print length( $seq1) - ( $seq1 ^ $seq2 ) =~ tr[\0][\0];;
    8
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2021-01-25 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?