Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: How many defaults of $/ does perl have?

by stevieb (Canon)
on Sep 18, 2015 at 23:35 UTC ( [id://1142475]=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1142475]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-24 06:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found