Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1009407]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2018-02-24 21:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (311 votes). Check out past polls.

    Notices?