Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Writing a Perl module that dynamically loads other modules

by mgad (Novice)
on Mar 01, 2013 at 20:52 UTC ( #1021337=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^2: Writing a Perl module that dynamically loads other modules

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021337]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2014-09-02 02:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (18 votes), past polls