Home > Archive > PERL Beginners > July 2004 > RE: New Line / Chomp Query
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
RE: New Line / Chomp Query
|
|
| Bob Showalter 2004-07-23, 3:55 pm |
| James Edward Gray II wrote:
> On Jul 23, 2004, at 7:16 AM, Bob Showalter wrote:
>
>
> Mac OS 9 and below used a single CR (0x0D) as the line terminator.
Thanks. Is translation to LF performed on input/output (a la Windows), or is
$/ set to CR on those systems?
> Mac OS X is a "Unix-ish system", as you described it, and thus uses LF
> (0x0A).
| |
| James Edward Gray II 2004-07-23, 3:55 pm |
| 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 Unix family. Mac OS 9 is definitely a fading star, so it's
getting less and less common to encounter it in any form.
James
|
|
|
|
|