On Sun Jul 18 10:05:44 2010, REHSACK wrote:
Show quoted text> A really cool feature for a lot of plug-ins could be to collect only
> those which are derived from a specific base class:
> eval {
> require $module;
> };
> push( @list, $modname ) if( !$@ and $modname->isa( $config{is_a} );
I've just created a new branch called triggers
https://github.com/simonwistow/Module-Pluggable/tree/triggers
that should help with this feature request. Have a look at
https://github.com/simonwistow/Module-Pluggable/blob/triggers/t/22trigger.t
in this case what you'd do is
package MyModule;
use Module::Pluggable require => 1, after_require => sub { !(shift->isa('IO::Handle') };
Can you take a look and see if that meets your needs?