perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srebrenko Sehic" <>
Subject Re: [mp2] accessing variables set via SetEnv?
Date Mon, 19 Jun 2006 10:35:29 GMT
On 6/19/06, Srebrenko Sehic <> wrote:

> If there any way to access and change a variable set via normal Apache
> "SetEnv myvar 1"? I've got some other Apache modules that do stuff
> depending on the value and I want to control that behaviour from
> mod_perl.
> Something like $r->dir_config("myvar"), but that also works on
> variables set by other Apache modules and not only by PerlSetVar and
> friends.

I figured it out. To access envorimental variable set by other modules, use:

# get/set
$r->subprocess_env("variable_name" => "value");

View raw message