in reply to Polymorphic Plugins

Maybe something like Module::Pluggable is what you're looking for? (Which is a similar off the shelf implementation of what you've suggested with the requiring stuff from a set of directories)

Replies are listed 'Best First'.
Re^2: Polymorphic Plugins
by dsheroh (Monsignor) on Jul 11, 2007 at 21:12 UTC
    That's just what I was looking for! Read the docs, threw this test together, and it works perfectly straight out of the box.
    #!/usr/bin/perl -wT use strict; use MyNamespace::Event; use Module::Pluggable require => 1, search_path => ['MyNamespace::Even +t']; print join "\n", plugins; print "\n\n"; print join "\n", keys %MyNamespace::Event::event_list; print "\n";
    Thanks!