Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Dynamicaly loading modules

by Sinister (Friar)
on Feb 13, 2002 at 15:20 UTC ( [id://145180]=note: print w/replies, xml ) Need Help??


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

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 $_

Replies are listed 'Best First'.
Re: Re^3: Dynamicaly loading modules
by perrin (Chancellor) on Feb 13, 2002 at 17:29 UTC
    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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-25 19:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found