Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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...


Comment on Re: saving the file uploaded...
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://148342]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2014-09-30 22:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (385 votes), past polls