in reply to Setting env vars in current process
"Setting a value in %ENV changes the environment for both your process and child processes..."This is true. Please be aware that the "current process" is your executing perl program itself. It is not the shell (or other program) that spawned your perl program. So if your aim is to modify your shell environment - the parent process of your perl program - then you need a workaround. There is a FAQ for this issue, although admittedly it's not very satisfactory:
jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Setting env vars in current process
by ruscoekm (Monk) on Feb 11, 2003 at 19:31 UTC | |
by jdporter (Paladin) on Feb 11, 2003 at 19:48 UTC | |
by ruscoekm (Monk) on Feb 11, 2003 at 20:11 UTC |