Specifically, because the OP's push @proteinString, $codon .= codonToAminoAcid($codon); will append the 'L' to 'TTA', then push the entire string to the array, whereas AM's suggested push @proteinString, codonToAminoAcid($codon); just pushes the 'L' into the array.
In reply to Re^2: Displayng the correct codon in a DNA string.
by pryrt
in thread Displayng the correct codon in a DNA string.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |