Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: how to find this substring?

by Not_a_Number (Parson)
on Jun 08, 2012 at 14:08 UTC ( #975171=note: print w/ replies, xml ) Need Help??


in reply to Re: how to find this substring?
in thread how to find this substring?

From the OP:

I need to read some DNA sequences and check if they start with 'ATG' and end in 'TAA', 'TAG' or 'TGA'

Given the sequence:

ATGXXXTAAXXXTAA

your code outputs:

ATGXXXTAA

whereas it should print the whole string (or 'true', or whatever).


Comment on Re^2: how to find this substring?
Select or Download Code
Re^3: how to find this substring?
by Anonymous Monk on Jun 08, 2012 at 14:15 UTC

    (o.O)

    So, why can't you change line 6 to be print "whatever\n\n";?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2015-07-05 15:42 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 (67 votes), past polls