bhagperl has asked for the wisdom of the Perl Monks concerning the following question:
I have shell script which sets env variables.
I want to call this shell script from another perl script, and use those env variables in my perl script.
I am using "source" command for this. and calling with system function in perl as:
system("source env_set.sh");
And i am trying to access variable "svn" as $ENV{svn} in perl script. but $ENV{svn} returns blank. It is not set.
This is not working !!
Please help me.
Thanks in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: call env shell script from perl
by Ratazong (Monsignor) on Nov 21, 2011 at 07:05 UTC | |
by bhagperl (Novice) on Nov 22, 2011 at 11:48 UTC | |
|
Re: call env shell script from perl
by Corion (Patriarch) on Nov 21, 2011 at 07:14 UTC | |
by bhagperl (Novice) on Nov 22, 2011 at 11:49 UTC |