Re: Having Module::Pluggable find plugins at runtime

2005-04-20 Thread Robin
OK, I now have: package PluginMgr; use strict; use warnings; use Module::Pluggable instantiate => 'new'; our @ISA=("Module::Pluggable"); sub new { my $invocant = shift; my $class = ref($invocant) || $invocant; my $self = { pluginDir => 'plugins', stateDir => 'pluginst

Re: Having Module::Pluggable find plugins at runtime

2005-04-19 Thread Robin
On Wednesday 20 April 2005 04:24, Jay Savage wrote: > What does your current code look like, and what errors is it > returning.   Well, it's not returning any errors because I can't get it to the point where it can run, because I'm not sure how to go about this. Some of what I currently have look

Re: Having Module::Pluggable find plugins at runtime

2005-04-19 Thread Jay Savage
On 4/19/05, Robin <[EMAIL PROTECTED]> wrote: > Hi, I'm using Module::Pluggable to give a program plugin support. > Basically, I'll have a directory full of .pm files and I want them to be > loaded and instantiated. That's all well and good, however all the > examples at > http://search.cpan.org/dis

Having Module::Pluggable find plugins at runtime

2005-04-19 Thread Robin
Hi, I'm using Module::Pluggable to give a program plugin support. Basically, I'll have a directory full of .pm files and I want them to be loaded and instantiated. That's all well and good, however all the examples at http://search.cpan.org/dist/Module-Pluggable/lib/Module/Pluggable.pm seem to