in reply to Re: End of line issues when using Mac OS X 10.5 and Windows (for Mac) products
in thread End of line issues when using Mac OS X 10.5 and Windows (for Mac) products

\n is never redefined, io layer translates
  • Comment on Re^2: End of line issues when using Mac OS X 10.5 and Windows (for Mac) products

Replies are listed 'Best First'.
Re^3: End of line issues when using Mac OS X 10.5 and Windows (for Mac) products
by ikegami (Patriarch) on Sep 26, 2008 at 09:56 UTC
    Sorry, that's not true. It's the case for Windows, but it was NOT the case for MacPerl. The string literals "\x0A" and "\n" produced different strings (chr(10) and chr(13)) respectively). That's why it was best practice to use "\x0D\x0A" for internet protocol modules instead of "\r\n". The latter wasn't portable.

    Update: Elaborated.