wigwam has asked for the wisdom of the Perl Monks concerning the following question:
Hi!
I've got
I get "Can't use an undefined value as a HASH reference". I Searched the whole net, but found no solution for this... Thanks! wigwamsub fileUpload { my $q = new CGI; if( my $id = $q->param( 'id' ) ) { #....... } elsif ( my $fileName = $q->upload( 'uploadfile' ) ) { my $fileInfo = $q->uploadInfo($fileName); print "Content-Type: text/html\n\n"; print "uploadInfo:<br>"; print "###$fileName###"; print $q->uploadInfo($fileName)->{'Content-Type'}; #map {print " $_: " . $fileInfo->{$_} . "<br>\n" } sort keys +%$fileInfo; exit(0); #.....
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: CGI.pm - uploadInfo() - Simply not working
by gellyfish (Monsignor) on Oct 24, 2006 at 15:44 UTC | |
Re: CGI.pm - uploadInfo() - Simply not working
by davorg (Chancellor) on Oct 24, 2006 at 15:41 UTC |
Back to
Seekers of Perl Wisdom