Fixed syntax error on older Perl versions and a small typo in the documentation