in reply to (Golf) RNA Genetic Code Translator

Are you asking us to golf the entire function, or just the substitution part? Here's a small savings:
sub RNA { # hash here $_=pop;s/..?.?/$g{$&}/g;$_ }
The hash will take me some more time. I'll do that later.

japhy -- Perl and Regex Hacker

Replies are listed 'Best First'.
Re^2: (Golf) RNA Genetic Code Translator
by tadman (Prior) on Jul 06, 2001 at 00:56 UTC
    When I saw that there was already a reply I figured someone pulled a use RNA out of their back pocket.

    The reference function has the hash in it, so yes, any compatible one would also have to, though presumably in a more compact format, which you could obtain by using the reference function hash as input data. Saves typing it in yourself and all that.