Re: Confused about variable scope.

2006-08-01 Thread robert
The approach I'm using is the suggested approach in the mod perl book. Basically setup the environment in order to pass information to apache so that it's available in httpd.conf and then in httpd.conf to use mod perl to interrogate %ENV. One problem is that mod_perl clears out %ENV so what you se

Re: Confused about variable scope.

2006-08-01 Thread Jonathan Vanasco
On Aug 1, 2006, at 4:38 PM, [EMAIL PROTECTED] wrote: for (`env`) { next unless /^X_/; /(.*)=(.*)/; $ENV{$1} = $2; push @PassEnv, $1; #print "$_\n"; } and I then do my $somevariable = $ENV{'X_KEY'}; my question is what exact

Confused about variable scope.

2006-08-01 Thread robert
So if my httpd.conf has multiple sections and I am doing something like this in the first one. for (`env`) { next unless /^X_/; /(.*)=(.*)/; $ENV{$1} = $2; push @PassEnv, $1; #print "$_\n"; } and I then do my $somevariable = $