Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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: (9)
As of 2015-07-03 20:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (56 votes), past polls