Automatically give your module the ability to have plugins
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.
$
pkg install p5-Module-PluggableOrigin
devel/p5-Module-Pluggable
Size
42.0KiB
License
ART10, GPLv1+
Maintainer
sunpoet@FreeBSD.org
Dependencies
1 packages
Required by
46 packages
Dependencies (1)
Required By (46)
bugzilla50bugzilla52p5-Alien-wxWidgetsp5-AnyEvent-MQTTp5-App-Cmdp5-Blog-Spamp5-Bot-Trainingp5-CIF-Clientp5-CPANPLUSp5-Catalyst-Action-RESTp5-Catalyst-Plugin-ErrorCatcherp5-Catalyst-Runtimep5-CatalystX-VirtualComponentsp5-Color-Libraryp5-Commandablep5-Config-Anyp5-Config-MVPp5-Convert-Colorp5-DBIx-QuickDBp5-Dancer2p5-Data-Phrasebookp5-DateTime-Format-Flexiblep5-Devel-InheritNamespacep5-Devel-MATp5-Devel-PatchPerlp5-Devel-ebugp5-Email-Abstractp5-Email-FolderTypep5-Email-Sendp5-File-ChangeNotify+ 16 more