in reply to Filehandles with CGI.pm

From the CGI Docs:

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)

Replies are listed 'Best First'.
Re^2: Filehandles with CGI.pm
by abecedae (Initiate) on Jun 22, 2004 at 01:23 UTC
    Excellent! (typo in the book) Thanks
      Really? Which version of CGI.pm is mentioned in the book? When was the book published (isbn)?