S
Si
hi, i have a perl program that calls another application. this second
application uses the value of certain environment variables during its
operation. i'm having trouble with unsetting those variables during
the course of the perl script.
my (wrong) pseudo code:
$var1 = $ENV{'VAR1};
$var2 = $ENV{'VAR2'};
$var3 = $ENV{'VAR3'};
system( "unsetenv VAR1");
system( "unsetenv VAR2");
system( "unsetenv VAR3");
run_the_external_app;
system( "setenv VAR1 $var1");
system( "setenv VAR2 $var2");
system( "setenv VAR3 $var3");
can someone tell me what the correct syntax should be for this?
application uses the value of certain environment variables during its
operation. i'm having trouble with unsetting those variables during
the course of the perl script.
my (wrong) pseudo code:
$var1 = $ENV{'VAR1};
$var2 = $ENV{'VAR2'};
$var3 = $ENV{'VAR3'};
system( "unsetenv VAR1");
system( "unsetenv VAR2");
system( "unsetenv VAR3");
run_the_external_app;
system( "setenv VAR1 $var1");
system( "setenv VAR2 $var2");
system( "setenv VAR3 $var3");
can someone tell me what the correct syntax should be for this?