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

A FAQ sounds like a good idea to me. I have no idea of the mechanics of how to create one. A FAQ is usually little more than an example of "how to...". That seems to be appropriate in this case. The more detailed discussion that you proposed belongs somewhere else, perhaps a tutorial.

I suspect that Perl's concept of 'layers'(with appropriate defaults) works so well that most of us are not even aware that it exists. I had used perl for over fifteen years before I even read 'PerlIO'. (I still have not read all the documentation for open.) The issue came up when Laurent_R and I were helping someone on the old PerlGuru.com. We could use his help.

Bill
  • Comment on Re^6: How do I display only matches (updated)

Replies are listed 'Best First'.
Re^7: How do I display only matches (updated)
by Marshall (Canon) on Sep 27, 2019 at 23:47 UTC
    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.

      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).