http://www.perlmonks.org?node_id=151124


in reply to CGI::Upload - CGI class for handling browser file uploads

Looks really good. I really like the interface.

I'm curious though, CGI->upload() returns a filehandle, so does CGI->param() for that matter. I am wondering why in _handle_file() you read from this filehandle and write to a new tempfile so you can provide your own filehandle. Wouldn't it be easier to use the filehandle the CGI.pm provides?

One more thing, if you do need the new filhandle do you need to binmode() it for compatability?

___ Simon Flack ($code or die)
$,=reverse'"ro_';s,$,\$,;s,$,lc ref sub{},e;$,
=~y'_"' ';eval"die";print $_,lc substr$@,0,3;