Module:...::Object(3)
hii bestie!! this is the Module:...::Object(3) page from the User Contributed Perl Documentation β¨
π NAME π
Module::Pluggable::Object β automatically give your module the ability to have plugins π
πΈ SYNOPSIS πΈ
okay so hereβs the simple Module::Pluggable use, bestie:
package MyClass;
use Module::Pluggable::Object;
my $finder = Module::Pluggable::Object->new(%opts);
print "My plugins are: ".join(", ", $finder->plugins)."\n";
π¦ DESCRIPTION π¦
It gives you a simple but, hopefully, extensible way to have 'plugins' for your module. Like, obvi this is not gonna be the be-all and end-all of every solution ever, but it works for me π«Ά
Essentially all it does is export a method into your namespace. That method looks through a search path for .pm files and turns those into class names. It can optionally instantiate those classes for you too β¨
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 for the options, bestie. thatβs where the whole option situation lives π
π 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
bye bestie β this one came from the perl v5.42.0 docs, dated 2025-01-11 π«Άβ¨π
π¦ where this page comes from
- alpine 3.23: perl-module-pluggable-doc 6.3-r0 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- opensuse-leap 16.0: perl-Module-Pluggable 6.300.0-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms