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?? |
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.
In Section
Seekers of Perl Wisdom
|
|