jk2addict has asked for the wisdom of the Perl Monks concerning the following question:
I'm currently between a rock and a hard place and I want to do something e-vil to work around the problem.
I'm currently using Module::Pluggable in Handel to load plugins for the checkout process. It currently loads all available plugins in any given namespace, but I'm tweaking the config to ignore specified plugins, or also to load just the listed plugins. Module::Pluggable currently has the except and only options available in its use statement.
Normally, this would be a no brainer...change my use statement in the begin block to a require/import during new() and pass the appropriate oprions from the config into except/only.
However, currently my use statement also specifies a minimum version of M::P of 2.9. Is there some special encantation whereby you can pass the version into require or into import()?
Sure, I suppose I could just die after require if M::P->VERSION is lower than 2.9, but I was looking for something cleaner, something closer to use Module::Pluggable 2.9;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How do I require a specific version?
by ikegami (Patriarch) on Jul 27, 2005 at 01:14 UTC | |
by jk2addict (Chaplain) on Jul 27, 2005 at 01:41 UTC | |
Re: How do I require a specific version?
by jk2addict (Chaplain) on Jul 27, 2005 at 01:20 UTC | |
Re: How do I require a specific version?
by bsb (Priest) on Jul 27, 2005 at 06:57 UTC | |
Re: How do I require a specific version?
by data64 (Chaplain) on Jul 30, 2005 at 23:04 UTC |