Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

( #6118=categorized answer: print w/ replies, xml ) Need Help??

Q&A > network programming > Why do I get a blank file on the receiving end? 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.

Comment on Answer: Why do I get a blank file on the receiving end?
Select or Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-12-20 04:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls