http://www.perlmonks.org?node_id=948770


in reply to File upload quit working

I fixed it. I guess, even though I am using CGI, I needed to define a new cgi:
my $q = new CGI; my $filename = $q->param("incoming"); my $handle = $q->upload("incoming");
That did it.

So I fixed it myself. Thank you for taking the time to offer a suggestion. There were no errors at all.

Richard

Replies are listed 'Best First'.
Re^2: File upload quit working
by Anonymous Monk on Jan 19, 2012 at 12:42 UTC

    So I fixed it myself. Thank you for taking the time to offer a suggestion. There were no errors at all.

    CGI offers two interface, oo interface  CGI->new ... and functional interface  use CGI qw/ param upload /; ...

    If you're trying to use the functional interface, but you fail to import param/upload, your program would have died with

    $ perl -MCGI -e " param() " Undefined subroutine &main::param called at -e line 1.

    So yes, there was definitely a problem