in reply to creating %ENV varibles
Did you mean 'so it *stays* until the session is over'?
In any event, any changes you make to %ENV will affect your current process and any child processes that it spawns, but you cannot affect the environment on which you run by setting a value in this hash. Since you mentioned 'session', I assume that you're talking about multiple invocations of a CGI script. Any change you make to %ENV in one invocation will usually not be available to subsequent invocations (unless you're running mod_perl or something like that).
That being said, what exactly are you trying to accomplish? You will probably have to find another solution. How are you trying to maintain the session and what are you trying to accomplish with a session? In other words, what did you want to set in %ENV and why did you want to do this? We might be able to give you some pointers from there.
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (Ovid) Re: creating %ENV varibles
by outcast (Monk) on Jun 15, 2001 at 21:39 UTC | |
by arturo (Vicar) on Jun 15, 2001 at 21:48 UTC | |
by outcast (Monk) on Jun 15, 2001 at 21:53 UTC |