in reply to CGI.pm and filehandle woes

CGI::uploadInfo() should return a hashref to all the uploaded file's headers. I don't think there is anything unusual about the filehandle returned by upload(). I'm suspicious of shoving your handle into IO::Seekable if it isn't already, but the buffer should be seekable so I don't think that's contrubuting anything to the real problem.

You appear to have a lot of external variables in your sub. Are these always doing what you expect? Consider the effect of closures. Using strict may help sort things out.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: CGI.pm and filehandle woes
by Elijah (Hermit) on Mar 27, 2007 at 19:29 UTC
    I always use strict and warnings, I am not sure what you mean by "external variables". This sub is just full of debug code right now to show me what CGI is ending me. I am simply assigning CGI passed params to local variables and using those, that is the strict way. :-)