in reply to Displayng the correct codon in a DNA string.

push @proteinString, codonToAminoAcid($codon);

Replies are listed 'Best First'.
Re^2: Displayng the correct codon in a DNA string.
by pryrt (Abbot) on Apr 25, 2016 at 02:23 UTC

    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.

      Thank you all! I certainly appreciate the insightful and beneficial feedback.