I think %ENV is particular to each apache child, so you might be "loosing" it because you're going to another
child process.

There are several modules that can help do this for you. I'm sure someone here can help you with some names. Otherwise you can look at using a database or flat file to store large pieces of info.

I remember reading somewhere that there is a module that will allow you to tie variables somehow to keep them persistent
across children...


Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Sep 7, 2005, at 10:39 AM, Anthony Gardner wrote:

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