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'};
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Problematic UploadFile() method in CGI.pm
by Errto (Vicar) on May 21, 2006 at 17:02 UTC |
In Section
Seekers of Perl Wisdom