Perl::Critic::Command(3pm)

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 @ARGV to 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.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13
  9. Arch

Author

Jeffrey Ryan Thalhammer <[email protected]>

From perl-perl-critic 1.156-3 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.