Perl::Critic::ProfilePrototype(3pm)

Perl::Critic::ProfilePrototype3pm

Generate an initial perl::critic profile.

Overview

This is a helper class that generates a prototype of a Perl::Critic profile (e.g. a .perlcriticrc file). There are no user-serviceable parts here.

Interface support

This is considered to be a non-public class. Its interface is subject to change without notice.

Constructor

"new( -policies => \@POLICY_OBJECTS )"

Returns a reference to a new "Perl::Critic::ProfilePrototype" object.

Methods

to_string()

Returns a string representation of this "ProfilePrototype". See "OVERLOADS" for more information.

Overloads

When a Perl::Critic::ProfilePrototype is evaluated in string context, it produces a multi-line summary of the policy name, default themes, and default severity for each Perl::Critic::Policy object that was given to the constructor of this "ProfilePrototype". If the Policy supports an additional parameters, they will also be listed (but commented-out). The format is suitable for use as a .perlcriticrc file.

Releases

10 releases since Debian 5.0 (Lenny); the text changed 9 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11
  8. 12
  9. 13
  10. 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.