[Kc] return vs newline
Andrew Moore
amoore at mooresystems.com
Fri Dec 8 08:41:31 PST 2006
On Fri, Dec 08, 2006 at 09:52:45AM -0600, JYOUNG79 at kc.rr.com wrote:
> Andy, thanks for bringing up "$INPUT_RECORD_SEPARATOR". That was the
> answer I needed.
Glad it helped!
> I'm assuming that once the code is finished running
> that the input record separator switches back to it's default (\n)?
Yep, it will go back to default after your program terminates. If you
need to to reset for something later in your code, you should save the
original value and reset it manually.
Frankly, I'm a little surprised that you have to do this. I thought
perl's "\n" was smart enough to know about this as long as you stay on
one single platform (even OSX). Oh well.
-Andy
More information about the kc
mailing list