>
> > Hi,
> >
> > According to the guide, one of the performance optimizations available
> > to me include using PerlSetEnv Off to avoid populating %ENV. However,
I'm
> > currently using PerlSetEnv to set EMBPERL_OPTIONS to 16 and
> > EMBPERL_ESCMODE to 0. So if I were to go for this optimization is there
> > some other way to globally achieve the same results?
>
> why don't you try? yes, it will work, e.g.:
> <Location /perl>
> PerlSetupEnv Off
> PerlSetEnv EMBPERL hi
> SetHandler perl-script
> PerlHandler Apache::RegistryNG->handler
> Options +ExecCGI
> </Location>
>
Yes, you are right, I should have thought while longer...
Embperl will setup a CGI Environement anyway, but if mod_perl don't do it,
it may speed up things.
Gerald
> a Data::Dumper of %ENV prints:
>
> $VAR1 = {
> 'GATEWAY_INTERFACE' => 'CGI-Perl/1.1',
> 'MOD_PERL' => 'mod_perl/1.21_01-dev',
> 'PATH' => '...',
> 'EMBPERL' => 'hi'
> };
>
> -Doug
>