in reply to Retrieving evironment variables from a shell script
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};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Retrieving evironment variables from a shell script
by chip (Curate) on Aug 02, 2000 at 10:25 UTC |