> -----Original Message-----
> From: Perrin Harkins [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 24, 2001 1:41 AM
> To: Steve Piner
> Cc: Chris Allen; [EMAIL PROTECTED]
> Subject: Re: When to use 'use' for accessing modules?
>
>
> Steve Piner wrote:
> >
> > Perrin Harkins wrote:
> >
> > > Chris Allen wrote:
> > [...]
> > > > Is $ENV{foo}='bar'; in startup.pl equivalent to
> PerlSetEnv foo bar
> > > > in httpd.conf?
> > >
> > > Yes.
well, not exactly. PerlSetEnv sets the subprocess_env table. as a side
effect of that, you get PerlSetEnv values in %ENV if you have PerlSetupEnv
On. The other way to look at it is that anything set with PerlSetEnv is
always accessible via $r->subprocess_env, but not necessarily with %ENV.
> >
> > Are you sure? I experimented a few months ago, and found that
> > $ENV{foo}='bar'; would only last in each child until the
> first request
> > of the child completed.
that's a bug
http://marc.theaimsgroup.com/?l=apache-modperl-dev&m=99565227711585&w=2
>
> You may be right. Depends on the setting of PerlSetupEnv, I think.
> - Perrin
>
HTH
--Geoff