Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: need help comparing DNA compliments

by zby (Vicar)
on Mar 17, 2003 at 16:01 UTC ( [id://243672]=note: print w/replies, xml ) Need Help??


in reply to need help comparing DNA compliments

How about having a hash of proper pairs let it have the name %pairs? And than comparing a concatenation of the letters from the first and second string like this
for my $i (0 .. $#dna){ if(! exists $pairs{$dna[$i].$comp[$i]}){ print "mismatch: ...."; } }
Disclaimer: I don't anderstand your code - but from your description I think it is what you wanted.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-29 09:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found