in reply to Re^6: How do I display only matches (updated)
in thread (SOLVED) How do I display only matches

Yes, there appears to be quite a controversy about what print "\n"; means when using the defaults on various platforms.

Perl's behaviour for me is easy to understand for write: a)Old Mac <CR>, b) Unix <LF>, c) Windows <CR><LF>.

I believe that when writing to a network socket, <CR><LF> is used, whether a), b), or c).

For the most part Perl hides these details (except when it doesn't).
That there is such controversy about such a seemingly simple thing implies that a FAQ is needed.

Replies are listed 'Best First'.
Re^8: How do I display only matches
by haukex (Archbishop) on Sep 28, 2019 at 07:28 UTC
    Yes, there appears to be quite a controversy about what print "\n"; means when using the defaults on various platforms.

    What exactly is "controversial" here? The facts of how Perl behaves are pretty well established.

    I believe that when writing to a network socket, <CR><LF> is used, whether a), b), or c).

    I already proved that is incorrect (Update: at least for *NIX and Windows).