BSD Ports

devel/p5-Module-Pluggable 5.2 DragonFly

Automatically give your module the ability to have plugins

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
devel, perl5
Package size
20.2 KiB, 42.6 KiB installed

Description

Module::Pluggable provides a simple but, hopefully, extensible way of having 'plugins' for your module. Obviously this isn't going to be the be all and end all of solutions but it works for me.

Essentially all it does is export a method into your namespace that looks through a search path for .pm files and turn those into class names.

Optionally it instantiates those classes for you.

In the other systems

SystemPortVersion
DragonFlydevel/p5-Module-Pluggable5.2
FreeBSDdevel/p5-Module-Pluggable6.4
OpenBSDdevel/p5-Module-Pluggable6.4
NetBSDdevel/p5-Module-Pluggable6.4
MidnightBSDdevel/p5-Module-Pluggable6.3

Install

Binary package:

pkg install p5-Module-Pluggable

From DPorts:

cd /usr/dports/devel/p5-Module-Pluggable && make install clean

Dependencies

Run dependencies 1