register_cleanup and %ENV

2007-12-20 Thread Michael Schout
Hi folks. I'm in the midst of porting a fairly large application over from mod_perl 1 to mod_perl 2.0. The app I am currently working on runs as a "perl-script" handler using PerlResponseHandler My::Package::Name under mod_perl 2. One situation I have is that I sometimes have to do a "long runn

Re: register_cleanup and %ENV

2007-12-20 Thread Perrin Harkins
On Dec 20, 2007 2:09 PM, Michael Schout <[EMAIL PROTECTED]> wrote: > mod_perl 2 unfortunately scrubs %ENV before my cleanup handler > gets called, so $ENV{TEST_MODE} is never set when the cleanup handler > runs. Have you considered using your own global instead? Or PerlSetVar in httpd.conf? - Pe

Re: register_cleanup and %ENV

2007-12-20 Thread Michael Schout
Perrin Harkins wrote: > Have you considered using your own global instead? Or PerlSetVar in > httpd.conf? Yeah. Unfortunately that really doesn't work for me. I can get TEST_MODE that way, but there are other %ENV vars that I need also (such as HTML_TEMPLATE_ROOT for example). I did manage