On 10/3/05, Michael Peters <[EMAIL PROTECTED]> wrote:
> > I believe that if you use lexicals for all your variables, you should
> > be OK (so always use 'my').  If you alter variables configured with
> > 'use vars' or 'our' then pages start becoming unshared very quickly.
>
> I don't think this is the case. I'm pretty sure it has to do with the
> variables scope not necessarily with the method of declaration (lexical
> or not). You can still declare package scoped variables with 'my', they
> just aren't accessible from the outside.

I think you are right.  I should have looked into it first before
writing that part, and now that I have I see that I was wrong.  I
guess I have some re-learning to do, since I haven't heavily optimized
the memory usage of a mod_perl server in several years (more memory is
usually a cheaper investment :).

Thanks for clarifying that...

Cheers,

Cees

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to