P is for Practical | |
PerlMonks |
Re^3: Problem computing GC contentby AnomalousMonk (Archbishop) |
on Jul 13, 2014 at 23:30 UTC ( [id://1093478]=note: print w/replies, xml ) | Need Help?? |
It wasn't intended to solve "the problem". AppleFritter has already offered what seems an adequate solution to the problem — although I must admit that my understanding of the problem may be very defective. What I wanted to offer was an approach to solving a portion of the problem: quickly counting the number of 'G' and 'C' characters in a string. One very Perlish way to do something like this is by using the tr operator.
In Section
Seekers of Perl Wisdom
|
|