in reply to plugins and inheritance
As Corion already suggested, I'd use require to pull in the modules you need.
I would ensure plugins are installed in a special directory, outside Perl's normal @INC, which only contains plugins.
I'd write an AUTOLOAD subroutine in the main code using File::Find to determine the names of all plugin modules (and cache this information to speed up subsequent calls to AUTOLOAD), then require in any module whose name matches the plugin you are looking for.
I'm not sure how you'd deal with multiple plugins that offer similar functionality, such as Module::Offering::this and Another::Provider_of::this, but then I'm not totally clear on exactly what you want to achieve.
I hope this is useful. Of course, TIMTOWTDI!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: plugins and inheritance
by dash2 (Hermit) on Feb 27, 2001 at 20:22 UTC | |
by tomhukins (Curate) on Feb 28, 2001 at 04:07 UTC |