You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Matt Sergeant <ma...@sergeant.org> on 2000/02/15 19:35:29 UTC

Resetting %ENV

Is it possible to re-run the %ENV setting routine after you've fiddled with
things like $r->uri?

-- 
<Matt/>

Details: FastNet Software Ltd - XML, Perl, Databases.
Tagline: High Performance Web Solutions
Web Sites: http://come.to/fastnet http://sergeant.org
Available for Consultancy, Contracts and Training.

Re: Resetting %ENV

Posted by Doug MacEachern <do...@pobox.com>.
On Tue, 15 Feb 2000, Matt Sergeant wrote:

> Is it possible to re-run the %ENV setting routine after you've fiddled with
> things like $r->uri?

$r->subprocess_env;

calling that with no args and in a void context will do just that.
you might need to $r->subprocess_env->clear first.
seems awfully expensive though, probably better to just set the
individual items you changed.