in reply to file upload and IO::Handle

What kind of thing is returned by upload(), or in other words, what is returned by ref $lightweight_fh after you assign upload to it?

Replies are listed 'Best First'.
Re^2: file upload and IO::Handle
by Anonymous Monk on Sep 08, 2010 at 20:59 UTC
    good question, how do I dump it to see?

    Thanks
    Rich
      I did die "$lightweight"; and it just prints the file name in the software error...

      So now what?

      thanks,
      Rich
        You should also try die ref $lightweight_fh to be sure it's not an object that stringifies to the filename. If it is not an object, it cannot use methods (->handle). If it is, you should read the documentation of its class to see what methods are supported. Seems like a bug in the CGI documentation?