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.
Copyright 2014- KOBAYASHI, Hiroaki