I meant in memory
I would not bet that perl uses 0x0A in memory on an EBCDIC machine to represent "\n" (haven't checked the source code). According to EBCDIC, LF (ASCII 0x0A) is 0x25 in EBCDIC. And if - for some reason - perl uses CR to represent "\n", that would be 0x0D in EBCDIC. NL (newline) is 0x15 in EBCDIC. UTF-EBCDIC moves LF to 0x15, just to confuse people even more. And NL is gone.
Alexander
In reply to Re^8: How to match last character of string, even if it happens to be a newline?
by afoken
in thread How to match last character of string, even if it happens to be a newline?
by Allasso
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |