in reply to Re^3: Can I do this ???
in thread Can I do this ???
The reason that works is because there is no child process involved.
The called script is processed by the calling process--in the same fashion as Perl's do script.pl;--and the changes are made to the current process' environment by the current process.
The effect is exactly the same as:
## Called .pl $::ENV{ somekey } = 'somevalue'; ##calling script; do 'called.pl';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Can I do this ???
by MidLifeXis (Monsignor) on Jan 22, 2009 at 16:02 UTC | |
by BrowserUk (Patriarch) on Jan 22, 2009 at 16:09 UTC | |
by rovf (Priest) on Jan 23, 2009 at 13:28 UTC |