in reply to Trying to make a simple file uploader CGI script

Need to give it a content-type. The browser needs to know what it's displaying so it can display it correctly. You can use CGI::header to provide this. Since you already use CGI qw(:standard), you can just do print header; somewhere near the top of your program.