in reply to perlkhan 77
to$count_G = ( $seq =~ tr/G//); $ratio_G = ($count_G/$len); # print "\n$ratio_G\n";
Writing the sub Calculate is left as an exercise to the reader. The advantages are you$ratio_G = Calculate( 'G' );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perlkhan 77
by Anonymous Monk on Apr 22, 2009 at 12:10 UTC | |
by Anonymous Monk on Apr 22, 2009 at 12:34 UTC |