in reply to Re: true environment
in thread true environment

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