Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: What is the best way to pack an ip address?

by chipmunk (Parson)
on Jan 14, 2002 at 06:38 UTC ( #138504=note: print w/replies, xml ) Need Help??


in reply to What is the best way to pack an ip address?

As Juerd said, chr(10) is a linefeed character. I suspect that one of your Perl scripts is running on Windows, and you forgot to call binmode() on the socket handle. Under Windows, Perl does some magic with newlines, converting "\r\n" to "\n" on input, and "\n" to "\r\n" on output. Calling binmode() disables this behavior for a specific filehandle.
  • Comment on Re: What is the best way to pack an ip address?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2020-01-28 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?