Hey bart, hey aquarium

Thanks for the replies!

I've just found the cure.

Before that part of the code, I had a sub that initiated the CGI object within itself. For example:

#!/usr/bin/perl -wT use CGI; my $q = new CGI; #... my ( $user_id, $name ) = identify ( $auth_token ); # ... my $fh = $q->upload( "file" ); my $filesize = -s $fh; die $filesize; # undef at debugging! # ... file read routines, that resulted blank after the upgrade
Then, on my personal lib, mylib1.pm, I had this subroutine:
sub identify { my $token = shift; # my $q = new CGI; # it started working when I removed this line! # identification routines # some calls to CGI.pm methods, where I used $q }
After hours of mystery, I decided to remove this inner initialization. And it worked! I'm now passing $q as a parameter to the sub.

sub identify { my $token = shift; my $q = shift; # and including this element on the sub call, of cou +rse my $q = new CGI; # it started working when I removed this line! # identification routines # some calls to CGI.pm methods, where I used $q }
Tell me, guys, what's the explanation? Is this a bug on CGI.pm garbage collection or is it the case that I was doing ugly things.

Funny is that it worked with 5.8.7.

Thanks

Andre


In reply to Re^2: File upload became deaf after upgrading from 5.8.7 to 5.8.9 by Andre_br
in thread File upload became deaf after upgrading from 5.8.7 to 5.8.9 by Andre_br

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.