in reply to Suggestion- How to serialize a cgi object?

The GLOB is an open file handle, and there's no way to serialize that. i think you are going to have to come up with your own serialization procedure wrapped around FreezeThaw, like storing the data you want to save (including the contents of the uploaded files) into a hash and then using FreezeThaw to save that to a file.

I'm very curious what you are trying to accomplish with this. Implicit with a CGI object is the connection (through STDIN and STDOUT) it has with the web server, and there's no way to restore that. Can you describe how this would work?

Replies are listed 'Best First'.
Re^2: Suggestion- How to serialize a cgi object?
by pffan239 (Beadle) on May 09, 2008 at 19:23 UTC

    After the CGI object parses the GET or POST, its all jammed in the CGI object's internal data structure (except for the file uploads of course, which are referenced by the globs.) Freezing the CGI object and thawing it back later seems to work fine for me in my experience.