module::pluggable::object(3perl) [debian man page]
Module::Pluggable::Object(3perl) Perl Programmers Reference Guide Module::Pluggable::Object(3perl)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)."
";
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.14.2 2010-12-30 Module::Pluggable::Object(3perl)
Check Out this Related Man Page
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)."
";
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.2 2013-08-25 Module::Pluggable::Object(3)
Hello,
I have a problem with DB handling in Perl.
Module 1 ---calls--> Module 2
Module 1 creates a DB Connection and passes the DB handle to Module2.
In module 2, I perform some Selects and Updates using this DB Handle.
Now Selects are ok....but after Update, when I give... (0 Replies)