You cannot push and pop a (%) hash. But If you want to retain the original
values, just copy them to a temporary hash. i.e.
%temphash = %ENV;
delete %ENV{'HOME'); # Operate on %ENV
%ENV = %temphash; # Restore %ENV
-----Original Message-----
From: Daryl J. Hoyt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 1:22 PM
To: Beginners Perl
Subject: Pushing and Popping ENV
Hi,
I would like to run a script that would significantly change the
environment several times. I was wondering if there is a way to push and
pop the environment table in Perl so I could always start with the original
environment table. Any ideas.
Thanks,
Daryl J. Hoyt
Performance Engineer
Geodesic Systems
http://www.geodesic.com
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]