Is there any reason you're not using CGI or CGI::Simple?
In reply to Re: multipart/form-data files by chromatic in thread multipart/form-data files by datannen