in reply to Loading arbitrary modules
When I am loading modules which can't be pulled in with just a plain, eval-free use, I'm grabbing everything in the Foo::Bar::* namespace (they're usually plugins or something similar), so I use Module::Pluggable to handle it:
use Module::Pluggable instantiate => 'register', search_path => ['Foo::Bar']; { my @plugins = plugins(undef, $hooks); }
|
|---|