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 $_
| [reply] |
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.
| [reply] |