|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
How to get the correct countby supriyoch_2008 (Scribe) |
| on Apr 19, 2012 at 10:48 UTC ( #965908=perlquestion: print w/ replies, xml ) | Need Help?? |
|
supriyoch_2008 has asked for the
wisdom of the Perl Monks concerning the following question:
Dear PerlMonks, I am a beginner in perl programming. I am getting wrong result in counting a regular expression from my program. I have given the program below. Can you help me to sort out this problem?
I have got the following wrong result: Number of bases (including N): 25. A= 5; GENE(S)= 1; But correct result should be: Number of bases (including N): 25. A= 5; GENE(S)= 2; Actually the value of GENE(S) should be 2 as there are two such regular expressions (sequences) in the array @DNA. Please suggest me the corrections in the code.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||