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


I’ve Perl script which should execute shell script ‘’.
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 ‘’ 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 chdir $ENV{HOME}; print ("$ENV{INCLUDE}");
I must to execute the shell script from perl in runtime.