http://qs321.pair.com?node_id=761736


in reply to How do I set env. Variables from Perl with shell script

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.

  • Comment on Re: How do I set env. Variables from Perl with shell script