in reply to I've got a problem with the file upload code
You want to write the $file_handle into the OUTFILE. How do you think an open filehandle is represented in another file?
Linking? Or Embedding? And while perl figures it out you can wait. FOREVER!