The CGI documentation should help you out perfectly.
Read it carefully and mind everything it says like:This second part seems to be the part you are missing
When I had to do file upload for the first time a few weeks ago it worked perfectly.
--#$data_from _file = get_file_data( $q->upload('file') ); sub get_file_data { my $filehandle = shift; my ($data, $buffer, $bytesread); while ($bytesread=read($filehandle,$buffer,1024)) { $data .= $buffer; } return $data; }
In reply to Re: A trivial CGI.pm problem...
by clscott
in thread A trivial CGI.pm problem...
by cyphedude
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |