Man page of Module::Pluggable::Object
Section: Perl Programmers Reference Guide (3perl)
Return to Main Contents
Module::Pluggable::Object - automatically give your module the ability to have plugins
Simple use Module::Pluggable -
my $finder = Module::Pluggable::Object->new(%opts);
print "My plugins are: ".join(", ", $finder->plugins)."\n";
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.
Simon Wistow <[email protected]>
Copyright, 2006 Simon Wistow
Distributed under the same terms as Perl itself.
- SEE ALSO
This document was created by
using the manual pages.
Time: 04:14:17 GMT, September 24, 2010