knsridhar has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks
I have a situation where i have to set shell environment variables within perl script and invoke shell command which uses this environment variable using system() function.
I am able to set the environment variable from perl, but when i try to access it through system() function, it doesnt print anything. Can anyone explain me and suggest me a solution
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Setting Environment variables in Perl
by Zaxo (Archbishop) on Sep 12, 2005 at 06:35 UTC | |
by Hue-Bond (Priest) on Sep 12, 2005 at 14:14 UTC | |
by gargle (Chaplain) on Sep 12, 2005 at 07:55 UTC | |
by Random_Walk (Prior) on Sep 12, 2005 at 11:37 UTC | |
by mhacker (Sexton) on Sep 13, 2005 at 07:07 UTC | |
|
Re: Setting Environment variables in Perl
by anthski (Scribe) on Sep 12, 2005 at 07:05 UTC | |
|
Re: Setting Environment variables in Perl
by davidrw (Prior) on Sep 12, 2005 at 12:37 UTC |