in reply to Re^6: Native newline encoding
in thread Native newline encoding

The question he asked was quite different to the one you continue to insist on answering.

Oh. I see.

Please enlighten me.

What question did he ask when he wrote:

I am looking for a way to easyly detect the native newline encoding of the OS running my perl script. Besides using a table to infer it from $^O, is there any other way to detect it?

And what question did I answer?

This:

Hence, I knew that he wasn't asking "What are the line endings"?
by the way, is neither. That's just something that you apparently pulled out of thin air.

And, you know, I really am not even sure that you understand the code you provided was completely useless. At first I thought you made an honest mistake in a hasty answer... then I thought maybe you were giving a brain dead example to make a (not so good) point, and now I'm really not so sure again.

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re^8: Native newline encoding
by BrowserUk (Patriarch) on May 23, 2012 at 02:53 UTC
    This: Hence, I knew that he wasn't asking "What are the line endings"? by the way, is neither. That's just something that you apparently pulled out of thin air.

    No. You raised that when you tried to suggest that I was trying to hide something.

    then I thought maybe you were giving a ... example to make a ... point

    OoooooW And you were so close ... but then no. The stupidity kicked in again.

    The point of the example -- that was clearly followed with the question: "Maybe not so useful depending upon your purpose?" -- was to point out that the value of "\n" is not OS dependent; but rather encoding dependent!.

    That what characters will end up on disk when you write a newline to a file, cannot be determined from discovering what OS you are running under alone

    .

    A point that I'm pretty sure that salva will have got from my original post, but one that you so completely missed, and are still trying arm-wave, distract and dissemble your way past.

    I'm done now, waffle on all you like.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?

    A reply falls below the community's threshold of quality. You may see it by logging in.