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.

Thanks.