in reply to How do I modularize a script to use plugins
Also see Module::Pluggable, or just require or do, together with File::Find.