wallacei has asked for the wisdom of the Perl Monks concerning the following question:
my $j =0; for($i=0;$i<length($protein);$i++){ my $chr=substr($protein,$i,1); if($chr ne "-"){ $new_dna=$new_dna.substr($dna,$j,1); $j=$j+1; }else{ $new_dna=$new_dna."-"; } + + + }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: String replacement
by Tanalis (Curate) on Jul 21, 2005 at 14:30 UTC | |
|
Re: String replacement
by Roy Johnson (Monsignor) on Jul 21, 2005 at 18:53 UTC | |
|
Re: String replacement
by radiantmatrix (Parson) on Jul 21, 2005 at 20:15 UTC |