in reply to multipart/form-data files

The form data on STDIN will be read in full as soon as you do y $cgi = new CGI; after that you can access the form fields using the $cgi->param() method and you can get a filehandle to the uploaded "file" data using the $cgi->upload() method. You can read about dealing with "file upload fields" in the CGI documentation.

/J\