On 5/10/07, Lionel MARTIN <[EMAIL PROTECTED]> wrote:
-I'll try avoid using large chunks of data so that interpreters memory
footprint don't grow too big.

Yes.

-I'll try to use, in my Perl scripts, lexical variables instead of global
variables, so that I'm sure the used memory can be resued for later requests
(global variables, on the other hand, stick in memory, due to mod perl way
of operating)

Not really.  In terms of memory, there's no difference.  The reason
you should use lexicals is that it's a better programming style.

There's really no difference in the way globals behave under mod_perl.
You just don't notice it under CGI because the process quits right
after the request has been served.

- Perrin

Reply via email to