Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: for loopsby Aristotle (Chancellor) |
on Dec 17, 2002 at 00:05 UTC ( [id://220404]=note: print w/replies, xml ) | Need Help?? |
Ugh, had to read BrowserUk's approach twice to see what was going on. Mine isn't as simple as it started out either - raaa, so obvious in hindsight:
my $count = grep /[GC]/, $dna =~ /..(.)/g;
There. It slices, it dices, it counts DNA bases. (Or is that RNA? Anyway.)
Makeshifts last the longest.
In Section
Seekers of Perl Wisdom
|
|