Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: saving the file uploaded...

by screamingeagle (Curate)
on Feb 28, 2002 at 19:23 UTC ( #148342=note: print w/replies, xml ) Need Help??

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 :-)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://148342]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2018-02-18 22:14 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (257 votes). Check out past polls.