This perlmonks node has an example of using a hash for a codon table.
In reply to Re: Bioinformatics coding question by Lotus1 in thread Bioinformatics coding question by charm