in reply to Loading all modules under a directory
This might also work but again is untested:use Module::Pluggable search_path => ['MyPlugins'] require => 1; ## The following is not tested... BEGIN { ## Do the Export and Export_OK into local namespace foreach my $plugin (__PACKAGE__->plugins()) { $plugin->import(); } }
use Module::Pluggable search_path => ['MyPlugins'] instantiate => 'imp +ort';
|
|---|