CPAN::Plugin(3perl)

CPAN::Plugin3perl

Base class for cpan shell extensions

Usage

   package CPAN::Plugin::Flurb;
   use parent 'CPAN::Plugin';
   sub post_test {
     my ($self, $distribution_object) = @_;
     $self = $self->new (distribution_object => $distribution_object);
     ...;
   }

Overview

Alpha Status

The plugin system in the CPAN shell was introduced in version 2.07 and is still considered experimental.

How Plugins work?

See "Plugin support" in CPAN.

Methods

plugin_requires

returns list of packages given plugin requires for functionality. This list is evaluated using "CPAN->use_inst" method.

distribution_object

Get current distribution object.

distribution

distribution_info

build_dir

Simple delegatees for misc parameters derived from distribution

is_xs

Predicate to detect whether package contains XS.

Releases

6 releases since Debian 9 (Stretch); the text changed 5 times.

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

Author

Branislav Zahradnik <[email protected]>

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