in reply to Re: Writing a Perl module that dynamically loads other modules
in thread Writing a Perl module that dynamically loads other modules
Stephen - Thanks for the info, I'll definitely take a look at Module::Load. To answer your questions:
>>if the filetype is "foo" you load the "My::Module::Foo"
Thats correct, that is exactly what I was planning to do.
>>you're not too worried about security, or that you're somehow validating these inputs
Correct and correct.
>>If you have a manageable number of file formats
That's the problem and exactly why I'm looking at loading the other modules dynamically. I'm already at 30+ filetypes and by the time everything is finished there will be around 75 total, maybe even more. Loading them all "up front" would be a bit of a pain.