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

Well, you can't (easily). Environment variables are only inherited to sub processes, not to the parent process.

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++)