in reply to How do I set env. Variables from Perl with shell script
So you have to call setParam.sh first, and then run the perl script. If you want to do it from within perl, you can try something along this lines:
unless ($ENV{INCLUDE}){ exec("setParam.sh; $^X $0 @ARGV"); }
(update: added missing quote, shmem++)
|
---|