You can store your %ENV in $cgi params before saving.
Something like this:
$cgi->param(-name=>"ENV-$_",-value=> $ENV{$_} for keys %ENV;
And restore them back upon CGI restoring
foreach my $p ($cgi->param()) { if ($p =~ /^ENV-(.*)/) { $ENV{$1} = $cgi->param($p); $cgi->delete($p); } }
In reply to Re: Restoring CGI.pm object
by ccn
in thread Restoring CGI.pm object
by Haloric
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |