👤
Home Man
Search
Today's Posts
Register

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:
Select Section of Man Page:
Select Man Page Repository:

CentOS 7.0 - man page for module::pluggable::object (centos section 3)

Module::Pluggable::Object(3)   User Contributed Perl Documentation   Module::Pluggable::Object(3)

NAME
       Module::Pluggable::Object - automatically give your module the ability to have plugins

SYNOPSIS
       Simple use Module::Pluggable -

	   package MyClass;
	   use Module::Pluggable::Object;

	   my $finder = Module::Pluggable::Object->new(%opts);
	   print "My plugins are: ".join(", ", $finder->plugins)."\n";

DESCRIPTION
       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.

       This object is wrapped by "Module::Pluggable". If you want to do something odd or add non-
       general special features you're probably best to wrap this and produce your own subclass.

OPTIONS
       See the "Module::Pluggable" docs.

AUTHOR
       Simon Wistow <simon@thegestalt.org>

COPYING
       Copyright, 2006 Simon Wistow

       Distributed under the same terms as Perl itself.

BUGS
       None known.

SEE ALSO
       Module::Pluggable

perl v5.16.3				    2014-06-09		     Module::Pluggable::Object(3)


All times are GMT -4. The time now is 12:07 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password