http://www.perlmonks.org?node_id=761703

Noame has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I’ve Perl script which should execute shell script ‘setParam.sh’.
The shell script is initialization environment variables, like:

HOME=”/opt/include” INCLUDE="${HOME}/INC;${HOME}/INC/new”
Please advice, how can I use all the Variables that were set in ‘setParam.sh’ in the Perl script?
How can I expose the ‘INCLUDE’ variable to the Perl so he can use it, f.e:

#! /usr/local/bin/perl # Execute setParam.sh.... chdir $ENV{HOME}; print ("$ENV{INCLUDE}");
I must to execute the shell script from perl in runtime.

Thanks