Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by roboticus (Chancellor)
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 rifling through the Monastery: (5)
As of 2015-07-30 04:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls