in the
0d0a. Maybe my code is not correct or unstable ?
-Original Message-
From: Bob Showalter [mailto:[EMAIL PROTECTED]
Sent: Friday, 23 July 2004 22:17
To: David Clarke; [EMAIL PROTECTED]
Subject: RE: New Line / Chomp Query
David Clarke wrote:
Hi, does anyone know what the new line character
David Clarke wrote:
Hi, does anyone know what the new line character value is in Hex for
a text file ? Is it 0d 0a ?
ASCII newline is 0x0A (decimal 10)
On Unix-ish systems, text files end each line with a single newline.
On Windows systems, text files end each line with a CR/LF pair (0x0D,
On Jul 23, 2004, at 7:16 AM, Bob Showalter wrote:
On Mac systems, the terminator is something different (not sure what),
but
the same concept applies as for Windows AFAIK.
Mac OS 9 and below used a single CR (0x0D) as the line terminator. Mac
OS X is a Unix-ish system, as you described it, and
James Edward Gray II wrote:
On Jul 23, 2004, at 7:16 AM, Bob Showalter wrote:
On Mac systems, the terminator is something different (not sure
what), but the same concept applies as for Windows AFAIK.
Mac OS 9 and below used a single CR (0x0D) as the line terminator.
Thanks. Is
On Jul 23, 2004, at 7:56 AM, Bob Showalter wrote:
Thanks. Is translation to LF performed on input/output (a la Windows),
or is
$/ set to CR on those systems?
No translation. $/ was set to CR and even \n gave you a CR.
Luckily, as I said before, Mac OS X is a much more native Perl, being
in the