in reply to true environment

Did you try it in a simple enough form that other errors don't get in the way? $ perl -e'$ENV{FOO} = q(bar);print `cat /proc/self/environ`,$/' produces a long bunch of stuff whose last entry is FOO=bar. The /proc/self/environ file is read-only to its owner.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: true environment
by Abigail-II (Bishop) on Oct 30, 2003 at 09:41 UTC
    But that shows the environment of the cat process, which is a child of the perl process (a fork() and exec() happens behind the scenes), and the OP wanted to inspect the (changed) environment of the parent.

    Abigail