http://qs321.pair.com?node_id=550728


in reply to Problematic UploadFile() method in CGI.pm

You need add a parenthesis to capture the hash reference, otherwise you will keep getting undef:

print h2('File MIME type'), (uploadInfo($file))->{'Content-Type'};