Craig A. Berry wrote:
To get back to Ken's question, it is safe to take a copy of C<keys %ENV>. You can then do stuff, take another copy and compare. You won't harm the environment. However, there is a chance of a race condition because some other process could create or delete keys from %ENV in the interim. I'm surprised that is OS-specific. I know Windows has both system-level and process-level environment variables. On the other hand, the window during which the test is running may be too small for this really to be anything worth worrying about.
On Windows and Unix, the processes get a copy of the current system environment variables. They do not see changes to the system environment variables after the process is created.
VMS is unique in that Perl is not actually using environment variables to store the $ENV values.
-John [EMAIL PROTECTED] Personal Opinion Only