Andre_br has asked for the wisdom of the Perl Monks concerning the following question:
But today, after upgrading Perl, it suddenly stopped working. I'm going mad as I've spent the whole day with this, and there's no way it comes back to work. (!)use CGI; my $q = new CGI; my $fh = $q->upload( "file" ); my $filesize = -s $fh; # die $filesize; # returns undef!
I even have set up the entire development environment in another machine (with perl 5.8.9 too) and the same occurs!
Both machines are win32. One of them is win2k and the other one is vista.
Besides the -s not working, nothing else on the file upload works too. I mean, I can't get the file as well, not only the size.
Any hints? I'm going crazy here. Please help.
Thanks
André
PS: I'm running Apache 1.3.4 on one of them, and now Apache 2.2 on the other one. So I think Apache is not guilt.
This is perl, v5.8.9 built for MSWin32-x86-multi-thread (with 12 registered patches, see perl -V for more detail) Copyright 1987-2008, Larry Wall Binary build 827 [291969] provided by ActiveState http://www.ActiveSta +te.com Built Jan 26 2010 21:15:51
|
|---|