Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by chipmunk (Parson)
on Jan 14, 2002 at 06:38 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://138504]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-18 05:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found