Jun 1, 2011, 1:10 PM
Post #2 of 2
You're trying to have a child process modify the environment of its parent, this doesn't work.
Re: [nibalan] sourcing csh file from perl script
[In reply to]
The same thing occurs the other way, when you try to have a perl script change the environment of the shell that you're running it under.
perldoc - I changed my environment in a perl script...
As for a solution, you could manually read the .sh script and set the $ENV vars yourself.