in reply to Re: How many defaults of $/ does perl have?
in thread How many defaults of $/ does perl have?

Understood LanX, on Windows, $/ is set to \r\n by default. I've found that on Windows, you can strip \r and be left with an \n (which is expected). I'm curious to know how, where and why this is compiled in. What's the trigger, and are there other *common* possibilities other than \r\n and \n.

Replies are listed 'Best First'.
Re^3: How many defaults of $/ does perl have?
by LanX (Saint) on Sep 18, 2015 at 23:40 UTC
    No its not!

    Read the linked post, the IO layer does the translation.

    Mac OS <10 had only "\r".

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

      I posted too quickly, I apologize.

        No need to apologize . Maybe I should have added a more polite "please" but I have the tendency to kill myth ASAP before they can spread.

        But as a hint, it wasn't too difficult to google. ;)

        Cheers Rolf
        (addicted to the Perl Programming Language and ☆☆☆☆ :)
        Je suis Charlie!