in reply to Re^7: How to match last character of string, even if it happens to be a newline?
in thread How to match last character of string, even if it happens to be a newline?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: How to match last character of string, even if it happens to be a newline?
by LanX (Saint) on May 14, 2019 at 18:07 UTC |