On Jul 28, 2006, at 9:50 PM, Joshua Colson wrote:
On Fri, 2006-07-28 at 21:28 +0200, Dr.Ruud wrote:
Robert Citek schreef:
Try a different value for the INPUT_RECORD_SEPARATOR ($/):
$/ = "\n" ;
(spaces added for clarity)
Is that different from the default?
(see perlvar)
Using ActiveState on Windows it is.
That's wrong.
$/ is eq "\n" everywhere, and "\n" has length 1 everywhere. "\n" is
eq "\012" in all systems except MacOS pre-X where it is eq "\015". In
particular "\n" is *not* CRLF on Windows.
My article about newlines is moving forward at O'Reilly, I hope I can
soon provide a pointer to it. Misconceptions about newlines arise too
often, which was my main motivation to write it.
-- fxn
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>