Re: to ENV or not to ENV
[prev]
[thread]
[next]
[Date index for 2005/05/18]
On Wed, 2005-05-18 at 16:30 +0100, Martin Moss wrote:
> 1) using %ENV
> 2) setting using our own subclass of Apache::Request's
> pnotes or notes methods
I like pnotes because it's guaranteed to get cleared at the end of the
request.
Also, anything you can do via %ENV can be done via any perl global, like
%My::Shared::Var.
> I also believe there
> has been some discussion on this list a while ago,
> which came out in favour of not using %ENV at all if
> it can be helped.... But I can't remember why this was
> a bad thing...?
There are more hoops to jump through for setting %ENV, since those are
actual environment variables. Might be a problem with threads too, but
I'm not sure about that.
- Perrin
 |
 |
Re: to ENV or not to ENV
Perrin Harkins 20:19 on 18 May 2005
|