How about setting it up in your  apache startup file (or your apache conf
file) ?
something like
PerlSetEnv myenv value
so that all your child instances start up with the env variable  already
set

-Arun
----- Original Message ----- 
From: "Anthony Gardner" <[EMAIL PROTECTED]>
To: <modperl@perl.apache.org>
Sent: Wednesday, September 07, 2005 9:09 PM
Subject: Losing ENV variables


> Hola,
>
> We're using apache/1.3.33 and mod_perl/1.29.
>
> the problem is, a personal ENV variable is set in my
> environment and read from a script like .....
>
> my $ENVNAME   = $ENV{MY_PERSONAL_ENV} || 'STHELSE';
>
> When the server is started a fresh, I can display my
> ENV on my webpage but when I press refresh, it
> disappears ...... never to be seen again.
>
> The contents of the ENV var is used to find a file and
> require it. So .....
>
> require "General/Config_$ENVNAME" ;
>
>
> What else do you need to know? Well, the script that
> contains this code is not loaded at server start up
> (not in startup.pl) for instance. Sometimes it works,
> sometimes it doesn't (that old cliche).
>
> I could try work arounds but b4 I do, I'd like to
> understand what may be going on here.
>
> any pointers would be great.
>
> CIA
>
> -Ants
>
>
>
>
>
>
>
>
> ___________________________________________________________
> Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with
voicemail http://uk.messenger.yahoo.com

Reply via email to