in reply to Re: Cross Platform end of Line characters
in thread Cross Platform end of Line characters
From perlport:
A common misconception in socket programming is that "\n"
eq "\012" everywhere. When using protocols such as common
Internet protocols, "\012" and "\015" are called for
specifically, and the values of the logical "\n" and "\r"
(carriage return) are not reliable.
print SOCKET "Hi there, client!\r\n"; # WRONG
print SOCKET "Hi there, client!\015\012"; # RIGHT
Doesn't that apply here as well? Or only if you want to make sure you're script has to be super portable?
Liz
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Cross Platform end of Line characters
by Cine (Friar) on Aug 02, 2003 at 15:55 UTC | |
by TomDLux (Vicar) on Aug 02, 2003 at 19:52 UTC | |
|
Re: Re: Re: Cross Platform end of Line characters
by djbiv (Scribe) on Aug 03, 2003 at 13:10 UTC |