[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] parsing text from a file



Matthew Langford wrote:
> 
> And "CRLF" is mostly a DOS thing...the real question _used_ to be what did
> your platform use as EOL (end-of-line) marker:  lf (Unix), cR (Mac), or
> CRLF (DOS).  

Maybe I'm missing your point, but...

CRLF is not mostly a DOS thing.  CRLF is the platform-independent
network-communication newline sequence.  For example, if you transfer a
file in text mode, your FTP client converts your local newline sequence
into CLRF, and the FTP server converts the CRLF into its local newline
sequence.

Similarly, if you're writing a Perl script to communicate with another
machine (as for telnet), you should end your text lines with CRLF.

Ronald

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org