You may find some inspiration looking at the
Road Runner project; I haven't worked in the project, but could be an idea for my final thesys. There are some papers, the system prototype is implemented in Java but... TMTOWTDI, and one is surely Perl.
Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')
Don't fool yourself.