in reply to Universal Translator

Read the perlfilter(1) manpage; source filters are designed to do exactly this sort of thing.