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

Re: [MacPerl] End-of-line separators



On 3/14/97 Mark Manning/Metrica wrote:

>End-of-line separators:
>
>The Mac uses "\n".
>The IBM uses "\r".
>Unix uses "\n\r".

I thought it went like this...

Mac	CR	\015
Unix	LF	\012
DOS	CRLF	\015\012

I use this bit of code to change it as needed...

 $eol  = "\015\012";           # DOS
#$eol  = "\015";               # Mac
#$eol  = "\012";               # UNIX

Does anyone "know" the truth? <smile>

RR

__________________________________________________________________________
  Richard Rathe, MD                       mailto:rrathe@dean.med.ufl.edu
  University of Florida                  http://www.med.ufl.edu/medinfo/