laziness, impatience, and hubris | |
PerlMonks |
•Re: How is %ENV copied by child processes ?by merlyn (Sage) |
on Apr 21, 2003 at 17:58 UTC ( [id://252074]=note: print w/replies, xml ) | Need Help?? |
The "copying" of a fork happens at a very low level, outside of user code space. You just end up with cloned pages.
To change the %ENV of a child process, you have to do the fork yourself, then change the env before you exec the actual item. A skeleton of this looks like what I just posted in open-coding a system() operation. -- Randal L. Schwartz, Perl hacker
In Section
Seekers of Perl Wisdom
|
|