![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re: How do I set env. Variables from Perl with shell scriptby december (Pilgrim) |
on May 04, 2009 at 14:16 UTC ( #761736=note: print w/replies, xml ) | Need Help?? |
You can't. If you execute the shell script from the perl script, it's a child process and the shell variables won't ever make it into perl's "upstream" environment. Perhaps you can manually parse the shell script and look for the INC(LUDE) variable, and then set the ENV from within perl manually based on the value found in the shell script... Depending on where exactly you want to with this, it might do the trick.
In Section
Seekers of Perl Wisdom
|
|