in reply to Re: Dynamicaly loading modules
in thread Dynamicaly loading modules

Thanks a lot tilly and broquaint...

I have been staring at this problem (and many others more for this project) for so long, that I forgot to look at the obvious...

I do feel a little blond now (no offense there! ;-)

Sinister greetings.
"With tying hashes you can do everything God and Larry have forbidden" -- Johan Vromans - YAPC::Europe 2001
perldoc -q $_

Replies are listed 'Best First'.
Re^3: Dynamicaly loading modules
by Sinister (Friar) on Feb 13, 2002 at 15:20 UTC

    Hmz,
    both tricks work perfectly, and I now use the Evil eval hack (I didn't sell my soul without side-effects ;-)

    I only wonder though, I use mod_perl for this little bugger, and the following questions raised:

    • Will the modules be sucked into cache (good thing)
    • How can I detect what is in cache? (better thing, even!)

    If you have answers, fellow monks, don't hesitate to shout it out...

    Sinister greetings.
    "With tying hashes you can do everything God and Larry have forbidden" -- Johan Vromans - YAPC::Europe 2001
    `perl -e print; perldoc -q $_
      What do you mean by "cache"? Any code compiled by the perl interpreter will stay there until the process is shut down.

      So, if your reason for only loading the particular module you intend to use was to save memory, it will probably not help much in mod_perl since all of the modules will eventually get loaded into every process.