Afternoon all

I'm trying to hunt down a usefull way of debugging Perl CGI scripts that
deal with file uploads.

Debugging normal CGIs is a simple as running perl -d cgiscript.pl from a
prompt, and then entering in the script arguments to the CGI.pm console mode
thingy, OR alternatively useing

my $query = new CGI;
$query->save( FILEHANDLE );

to save the CGI query out to a file, and then read it back in...

However, this all seems to fail when you try to use a file upload field...
You can't type anything into console mode, and $query->save doesn't handle
them correctly, it just writes into the output file that the upload field
was empty.

How do people here go about doing debugging on file upload type fields.

BTW, the script isn't crashing. It runs OK, and loads the temp file (
containing the uploaded file ) OK, but it's failing somewhere after that in
some code somewhere, and I'm just looking for a way to debug it properly.

AdamK


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to