in reply to Re: [mod_perl] when does it keep data in memory?
in thread [mod_perl] when does it keep data in memory?

global as in our or not declared at all? In other words: what is a global? (i feel so n00bish)

Replies are listed 'Best First'.
Re^3: [mod_perl] when does it keep data in memory?
by BrowserUk (Patriarch) on Nov 27, 2004 at 11:29 UTC

    A global is a global (except for a few special ones). Whether you keep strict quiet by using use vars [$theGlobal]; or our $theGlobal; shouldn't make any difference, you'll be using the same piece of RAM.

    That is, that's how it works in a non-mod_perl script. Again, I re-emphasis my earlier disclaimer here. I know nothing of mod_perl, nor how this would play with Apache2 (which uses threads?).


    Examine what is said, not who speaks.
    "But you should never overestimate the ingenuity of the sceptics to come up with a counter-argument." -Myles Allen
    "Think for yourself!" - Abigail        "Time is a poor substitute for thought"--theorbtwo         "Efficiency is intelligent laziness." -David Dunham
    "Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon