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        

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

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