in reply to saving the file uploaded...

my guess is that since you're initializing the filestream variables as scalars, this might be preventing it from acting as a filehandle...try removing the initializing lines...

Replies are listed 'Best First'.
Re: Re: saving the file uploaded...
by chromatic (Archbishop) on Feb 28, 2002 at 19:29 UTC
    my $scalar = ''; $scalar = {}; print ref $scalar, "\n"; $scalar = []; print ref $scalar, "\n"; use IO::File; $scalar = IO::File->new(); print ref $scalar, "\n";
    Update: Perl is loosely typed. Assignments tend not to care about the previous contents of the variable. That's all.
      That may be true, however, i had a very similar problem a few months ago, which i fixed by removing the initialization line... hence my post :-)