Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 examining the Monastery: (7)
As of 2014-12-28 17:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (182 votes), past polls