in reply to Re^2: Restoring CGI.pm object
in thread Restoring CGI.pm object

Since remote_addr is exactly
sub remote_addr { return $ENV{'REMOTE_ADDR'} || '127.0.0.1'; }
the easiest way to isolate stored ENV is to use local %ENV