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

Re: Urgent help required. Need a code to translate a given nucleotide sequence into proteins using codon table.

by kennethk (Monsignor)
on Feb 13, 2013 at 19:11 UTC ( #1018606=note: print w/ replies, xml ) Need Help??


in reply to Urgent help required. Need a code to translate a given nucleotide sequence into proteins using codon table.

So a scan your post suggests you would be well served by using strict in your coding -- see Basic debugging checklist and Use strict warnings and diagnostics or die. If I'm reading it correctly, most of your return statements return barewords rather than strings. For example, I expect return K; should actually be return 'K'; -- you don't actually have a subroutine named K, right?

Of course, all this is guesses because your posted code is mangled because of lack of <code> tags and you don't provide input or expected output. See How do I post a question effectively?


#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.


Comment on Re: Urgent help required. Need a code to translate a given nucleotide sequence into proteins using codon table.
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (16)
As of 2014-10-30 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (208 votes), past polls