App::perlminlint - minimalistic lint for perl
% perlminlint myscript.pl # => This tests "perl -wc myscript.pl" % perlminlint MyModule.pm # => This tests "perl -MMyModule -we0" % perlminlint MyInnerModule.pm # => This tests "perl -I.. -MMyApp::MyInnerModule -we0" % perlminlint cpanfile # => This tests Module::CPANfile->load
Perl has had long support for compile only mode, but it is not so trivial to use this mode to check scripts so that to integrate automatic check into editors like Emacs and Vim. Because most real-world perl scripts consist of many other modules, and to load them correctly, you must give correct search path for perl as -I$DIR and/or -Mlib=$DIR. Also, to test modules, "perl -M$MOD -e0" is better than "perl -wc".
perlminlint wraps all such details so that you can just run perlminlint $yourfile to test your script.
perlminlint
perlminlint $yourfile
Module::Pluggable
Copyright 2014- KOBAYASHI, Hiroaki
To install App::perlminlint, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::perlminlint
CPAN shell
perl -MCPAN -e shell install App::perlminlint
For more information on module installation, please visit the detailed CPAN module installation guide.