KOBAYASHI, Hiroaki

NAME

App::perlminlint - minimalistic lint for perl

SYNOPSIS

    % perlminlint  myscript.pl
    #  => This tests "perl -wc myscript.pl"

    % perlminlint  MyModule.pm
    #  => This tests "perl -we 'require MyModule'"

    % perlminlint  MyInnerModule.pm
    #  => This tests "perl -I.. -we 'require MyApp::MyInnerModule'"

    % perlminlint  cpanfile
    #  => This tests Module::CPANfile->load

DESCRIPTION

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 -we 'require THE_MODULE'" is better than "perl -wc".

perlminlint wraps all such details so that you can just run perlminlint $yourfile to test your script.

SEE ALSO

Module::Pluggable

COPYRIGHT

Copyright 2014- KOBAYASHI, Hiroaki