And while Module::Locate isn't necessary (although it was designed for this sort of usage), it does take out the drudgery of munging class names into file paths. You might also be interested in Simon Wistow's Module::Pluggable.use Module::Locate 'locate'; my @plugFuncs; for(@plugins) { require( locate $_ ) and $_->import; $_->can('init')->(); push @plugFuncs, $_->can('worker'); }
_________
broquaint
In reply to Re: plugins revisited
by broquaint
in thread plugins revisited
by drone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |