Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Answer: Why do I get a blank file on the receiving end?

by btrott (Parson)
on Mar 25, 2000 at 02:33 UTC ( #6118=categorized answer: print w/replies, xml ) Need Help??

Q&A > network programming > Why do I get a blank file on the receiving end? - Answer contributed by btrott

Then how do you know the file transferred through the socket correctly?

In the line where you're printing to the file, try just printing to the terminal instead (instead of

print FILE $_;
just use
print $_;
Also, is this a binary file? It's possible that you may need to use read instead of the <> operator. And perhaps binmode as well.

Log In?

What's my password?
Create A New User
[erix]: there used to be the 'razing' of towns and citoes but that now means something else in Germany (rasen=driving too fast)

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2017-05-29 15:34 GMT
Find Nodes?
    Voting Booth?