in reply to How best to require subclasses at runtime

I've done something similar to what you want by using File::Find.

You can find my node here and a solution here.

To recap, I wanted to load a list of unknown modules at runtime. The application is an API, and whenever a new hook was built, I didnt want the hastle of buggerising around with config files..

All I have to do now, is restart the server, and any modules in the path will be automatically have their instance created, and stored in $self.

  • Comment on Re: How best to require subclasses at runtime