in reply to setenv in perl
The environment is always copied from parent to child process and not shared.
A changed environment in your Perl script is only visible inside this script and children processes of that script.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
If your problem is in the other direction, try export with variables meant to be available to a child process
lanx@ubuntu:~$ export TEST=TRUE lanx@ubuntu:~$ perl -E 'say $ENV{TEST}' TRUE
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: setenv in perl
by Anonymous Monk on Jul 09, 2018 at 13:59 UTC | |
by LanX (Saint) on Jul 09, 2018 at 16:00 UTC |