Perl::Critic::Command3pm
Guts of perlcritic.
Usage
use Perl::Critic::Command qw< run >;local @ARGV = qw< --statistics-only lib bin >;run();
Overview
This is the implementation of the perlcritic command. You can use this to run the command without going through a command interpreter.
Interface support
This is considered to be a public class. However, its interface is experimental, and will likely change.
Importable subroutines
- run()
-
Does the equivalent of the perlcritic command. Unfortunately, at present, this doesn't take any parameters but uses
@ARGVto get its input instead. Count on this changing; don't count on the current interface.
To do
Make run() take parameters. The equivalent of @ARGV should be passed as a reference.
Turn this into an object.
Releases
9 releases since Debian 6.0 (Squeeze); the text changed 8 times.