in reply to Restoring CGI.pm object
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); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Restoring CGI.pm object
by Haloric (Novice) on Oct 27, 2008 at 17:51 UTC | |
by ccn (Vicar) on Oct 27, 2008 at 18:01 UTC | |
by jettero (Monsignor) on Oct 27, 2008 at 17:56 UTC | |
by Haloric (Novice) on Oct 27, 2008 at 18:07 UTC | |
by jettero (Monsignor) on Oct 27, 2008 at 19:43 UTC |