Re: setting and importing ENV from within PERL

2001-07-27 Thread Stephen P. Potter
Lightning flashed, thunder crashed and Venkat Mohan <[EMAIL PROTECTED]> wh ispered: | $ENV{MY_VAR} = "test"; | | will set the env var MY_VAR However, it will only set it in the script. Once the script exits and you are back to the parent shell, that variable goes away. There really is no way

RE: setting and importing ENV from within PERL

2001-07-27 Thread Bob Showalter
> -Original Message- > From: perl newbie [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 26, 2001 6:22 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: setting and importing ENV from within PERL > > > I am trying to figure out if there i

RE: setting and importing ENV from within PERL

2001-07-26 Thread Venkat Mohan
$ENV{MY_VAR} = "test"; will set the env var MY_VAR -Venkat -Original Message- From: perl newbie [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 26, 2001 3:22 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: setting and importing ENV from within PERL I am

Re: setting and importing ENV from within PERL

2001-07-26 Thread perl newbie
I am trying to figure out if there is a way to : a) set an ENV variable from within a perl script and then print out it's value from within the same shell. Here is the code that I am trying to use: #!/usr/bin/perl -w use strict; # set some environment variables. system(`setenv MY_VAR "test"`