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

Re^4: Is there a way to open a memory file with binmode :raw? ("\n")

by tye (Sage)
on Oct 11, 2015 at 07:26 UTC ( [id://1144414]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Is there a way to open a memory file with binmode :raw?
in thread Is there a way to open a memory file with binmode :raw?

Yeah, perlport has caused more wrong conclusions than enlightenment on newlines in my experience. For example:

In Perl, \n is a logical newline. It does not necessarily represent the single ASCII character

In Perl, "\n" is actually always exactly one character. On an ASCII system, it is also always ASCII linefeed... except for the single case of old Macs, which took the unprecedented route of being "almost ASCII".

"\n" is not much more a "logical" newline than "a" is a logical letter A. "a" is also always exactly one character and is also not always the ASCII lower-case letter A.

- tye        

Replies are listed 'Best First'.
Re^5: Is there a way to open a memory file with binmode :raw? ("\n")
by kcott (Archbishop) on Oct 12, 2015 at 03:44 UTC

    Thanks for the feedback. I've updated my node.

    — Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-03-28 19:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found