Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Fast Identification Of String Difference

by neversaint (Deacon)
on Jan 17, 2011 at 02:38 UTC ( #882590=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
        my $s1 = "ACTGGA";
        my $s2 = "AGTG-A";
       # Note the string can be longer than this.
       # But they are always of the same length.
  2. or download this
    #String Position 0-based
    # First col = Base in S1
    # Third col = Position in S1 where they differ
    C G 1
    G - 4

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://882590]
Approved by broomduster
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2016-07-29 16:02 GMT
Find Nodes?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?

    Results (263 votes). Check out past polls.