Minor fix + new syntax checker for Perl using perlcritic

Minor omission: loclist was used uninitialized.
New syntax checker for Perl.