$rna =~ s/(...)/$gencode{$1}/g; [download]
In reply to Re: Keeping track of substituted regions with a while loop by choroba in thread [SOLVED] Keeping track of substituted regions with a while loop by enderk