CPAN::Plugin(3p)

CPAN::Plugin3p

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

21 releases since OpenBSD 6.1; the text changed 14 times.

  1. 6.1
  2. 6.2
  3. 6.3–6.4
  4. 6.5
  5. 6.6
  6. 6.7
  7. 6.8
  8. 6.9–7.2
  9. 7.3
  10. 7.4
  11. 7.5
  12. 7.6
  13. 7.7–7.8
  14. 7.9
  15. 8.0

Author

Branislav Zahradnik <[email protected]>

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's man source.