Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by mgad (Novice)
on Mar 01, 2013 at 20:52 UTC ( [id://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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-28 16:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found