Fixes #102: adds a Perl mode