Mailing List Archive

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 [ In reply to ]
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.