On Oct 28, 2005, at 15:09, Jeff 'japhy' Pinyan wrote:

On Oct 28, Renee Halbrook said:


My perl interpreter display does not recognize "\r" for a newline character for standard out, so it simply printed the same line over on top of the previous line, making it look like it was only reading one line total. The slurping was working fine, but the display was not what I anticipating.


That's not Perl's issue. That's your terminal's issue. And it's not an "issue", because that's what \r is supposed to do. \r is a carriage return, which only means the cursor is brought back to the beginning of the line.

(Except maybe on Macs, I don't know. That's weird. I don't use a Mac, though, so I can't be sure.)

In Mac OS X the newline is \012 and that is what "\n" is eq to. I was told in MacPerl (for MacOS pre X) the underlying codes of \n and \r were switched (wrt to the rest of platforms), but still \n is the logical newline everywhere.

-- fxn



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to