I installed Perl::Critic yesterday night to take a look. Anyway, here
you go with a small example:
poletti@PolettiX:~/sviluppo/perl$ cat pcritic.pl
#!/usr/bin/perl
use strict;
use warnings;
# $Revision$ $Source$ $Date$
our $VERSION = 1;
BEGIN {
print {*STDOUT} 'beginning...';
}
END {
print {*STDOUT} 'ending...';
}
poletti@PolettiX:~/sviluppo/perl$ perlcritic -V
0.14
poletti@PolettiX:~/sviluppo/perl$ perlcritic pcritic.pl
pcritic.pl source OK
poletti@PolettiX:~/sviluppo/perl$ perlcritic -1 pcritic.pl
Subroutine does not end with 'return' at line 8, column 1. See page 197
of PBP. (Severity: 4)
Subroutine does not end with 'return' at line 12, column 1. See page
197 of PBP. (Severity: 4)
poletti@PolettiX:~/sviluppo/perl$
BR,
Flavio