> -----Original Message----- > From: Agustin Rivera [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 07, 2001 6:40 PM > To: Daniel Gardner > Cc: [EMAIL PROTECTED] > Subject: Re: Disable ModPerl > > > I am under the idea that modperl recycles as many variables > as possible to > speed up script processing. I don't want it to recycle > variables in some > scripts (in particular, ones I haven't written and have no > desire to debug).
You can have mod_perl handle those scripts with Apache::PerlRun instead of Apache::Registry; then you get a fresh set of globals with each request. This is still much faster than mod_cgi. See the mod_perl guide for details on setting up an Apache::PerlRun area. To port to Apache::Registry, file-wide variables should be delcared as: our ($foo, @bar, %baz); local ($foo, @bar, %baz); The "local" declaration will give you request-level globals. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]