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' );
In reply to Re: perlkhan 77
by apl
in thread perlkhan 77
by perlkhan77
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |