Think about Loose Coupling | |
PerlMonks |
Double check for positionsby bisimen (Acolyte) |
on Oct 18, 2017 at 12:30 UTC ( [id://1201579]=perlquestion: print w/replies, xml ) | Need Help?? |
bisimen has asked for the wisdom of the Perl Monks concerning the following question: This sub works, but say this is my DNA: AGCTTCTTGCGCTTCTT and this is what i'm looking for: GCTTCTTGC It will return 2. Which it correct, but since the next match blends into the first one, it dosen't detect it. So it should return: 2 9 I guess I need to change the regular expression somehow...
Thanks for any answers!
Back to
Seekers of Perl Wisdom
|
|