Apr 15, 2013, 11:57 AM
Post #2 of 2
Your are probably asking the wrong question. Perl's /n is a 'logical' newline. By default perl I/O maps it to the character (or sequence) used by the operating system that is running. Perl uses \012 which is also what unix uses. This character is the same in ASCII and EPCIDIC.
Re: [gkol0279] Add new line character to and ebcdic file
[In reply to]
I have not used an IBM mainframe in over fifteen years. What I remember may be all wrong today. Back in the day, IBM did not have anything called a 'file'. This was much deeper than just a naming convention. Data was stored as a sequence of records, not characters. There were many ways to store these records (none of them involved a newline sequence at all). The choice depended on the data.
Today you also have internet conventions. I have no idea how IBM deals with them.
I know that I am not offering much practical advice, but I do hope I am helping you to ask the right questions.