Add Perl support

Fixes #12.