the upload() function (new in version 2.47). When called with the name of an upload field, upload() returns a filehandle, or undef if the parameter is not a valid filehandle.(My Emphasis)
So, what you need to do to get the file HANDLE is: (Untested)
my $fh = $q->upload( "file" );
Earth first! (We'll rob the other planets later)
In reply to Re: Filehandles with CGI.pm
by NetWallah
in thread Filehandles with CGI.pm
by abecedae
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |