If you are using CGI.pm, use the format specified in the docs of the save method: it seems to be exactly what you need.
If you don't use it, it's better for you to start as soon as possible!!!
For more information, perldoc CGI
Ciao! --bronto
| [reply] [d/l] [select] |
Use a redirect header targetting to the other script along with the http-status code 303 (means "see other"). In the URL you must suplly with -uri you can easily add an ID as a reference to the document you created or identify the user in any other way. merlyn wrote a column about Browser Branding. Have a nice day
All decision is left to your taste
UpdateRegarding the format for that temporary file I'd suggest you look into XML::Simple, or if you can be sure the user will proceed immediately you could _store_ a hash with some values in the first script, pass an identifier to the second script which then _retrieve_s the hash using methods from Storable.pm.
| [reply] |
I think you're looking at this the wrong way. Instead of having your CGI script call your command line program, abstract the logic required to save the data to a seperate module, and create two clients for that module: A command line application and a CGI application.
That way, it doesn't matter how your command line application actually gets the data for testing, just that it passed the data on to the module in the correct form (Say, a hash ref.)
| [reply] |