Later,my $rcfile = 'testrc'; # sets TESTEX to "test!" if(open(CHILD_TO_READ, ". $rcfile; env | sort |")) { while (<CHILD_TO_READ>) { my ($key, $val) = split '='; $ENV{$key} = $val; }; } print $ENV{TESTEX};
In reply to Re: Retrieving evironment variables from a shell script
by ray
in thread Retrieving evironment variables from a shell script
by markguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |