in reply to Writing a Perl module that dynamically loads other modules

Why "dynamic"? Common sense tells me (OK - it's denglish isn't it?): Just load them all before doing anything and then do that if/else/switch stuff. Or do you have hundreds of file types ;-)

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»

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

Replies are listed 'Best First'.
Re^2: Writing a Perl module that dynamically loads other modules
by mgad (Novice) on Mar 01, 2013 at 20:57 UTC

    Hi Karl - See above, I don't have hundreds of filetypes but I do have more than seventy and (IMHO) that's too many to load up front. :)

      Hi mgad, what kind of task is this (so many file types)? Perhaps you can provide some more information?

      Best regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

        Hi Karl - They're engineering/component specifications for a bunch of different types of equipment. I'm simply parsing them for the important bits that are to be stored for future reporting needs. And for anyone else who might stumble across this, the thing that I've now learned is that I'm essentially building a "Perl factory" for different file types. A quick web search yielded a bunch of useful info. Cheers!