Greetings,
I am trying to source a cshrc file in my perl script. From the helpful reply to my previous question, I decided to use the following line: system {"/bin/csh"} "sh", "-c", "source /van/home/cshrc" || die "Cannot source the cshrc file"; This does work; however, it appears that because system spawns a new process to do this, when it finishes, I lose the environmental variables that I just sourced. Does anyone know of a way to "capture" these environmental variables so that the rest of the perl script can use them?
Thanks in advance.
Kirb-meister.