XP is just a number | |
PerlMonks |
Re: Reading and setting the environment from a shell script for the calling programby herveus (Prior) |
on Sep 01, 2004 at 13:52 UTC ( [id://387517]=note: print w/replies, xml ) | Need Help?? |
Howdy!
The child process cannot change the parent process's environment. Period. Stop. End of story. On the other hand, if the child process diddles its environment and concludes by running 'env', the parent can capture that output and use it (or whatever subset it cares to take) to update its own environment. See Re: UNIX environment setup via perl for my take on this...
yours, Michael
In Section
Seekers of Perl Wisdom
|
|