Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: nested foreach loop, match DNA sequences and calculate score

by roboticus (Canon)
on Dec 18, 2012 at 15:38 UTC ( #1009407=note: print w/ replies, xml ) Need Help??


in reply to nested foreach loop, match DNA sequences and calculate score

NadjaPadjala:

Your $base1 and $base2 variables aren't arrays, but you're treating them as such. Just try:

if ($base1 eq $base2)

Also, your print $score; statement on line 32 should be inside the curly braces. There may be more issues, but that's all I see at the moment.

...roboticus

When your only tool is a hammer, all problems look like your thumb.


Comment on Re: nested foreach loop, match DNA sequences and calculate score
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2014-07-14 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (260 votes), past polls