in reply to Image Uploading

When you use CGI.pm for accessing a file uploaded through the browser the file upload field name is both the name of the uploaded file AND a CGI.pm-created filehandle. (You just gotta love that CGI module.)

So, if you want to spit the image back to the browser you can do something like what you've already done. On the other hand, if you want to save the file to the server for safe keeping you can:

# Copy a binary file to somewhere safe open (OUTFILE,">>/usr/local/web/users/feedback"); while ($bytesread=read($filename,$buffer,1024)) { print OUTFILE $buffer; }
The above is straight from the CGI.pm documentation, where OUTFILE is the filehandle to where you want the uploaded image saved to.

Gary Blackburn
Trained Killer