in reply to Re^4: How to extract a pattern in Perl regex?
in thread How to extract a pattern in Perl regex?

We've had this conversation before. Let's agree to disagree. :-)

  • Comment on Re^5: How to extract a pattern in Perl regex?

Replies are listed 'Best First'.
Re^6: How to extract a pattern in Perl regex?
by AnomalousMonk (Archbishop) on May 01, 2020 at 11:52 UTC

    As I was finishing my reply, it began to dawn on me that we had, in fact, had this discussion before. Anyway, it seemed that it might still be useful to a novice monk to be exposed to the disagreement.


    Give a man a fish:  <%-{-{-{-<

      For my part, I consider automatic inclusion of flags a kind of micro-cargo-culting. If they are there, my assumption is they are necessary for the code to operate correctly. That means that if they are not actually needed, my assumption may lead me to possibly misunderstand the source they will operate upon or need to investigate or read the regex a lot more closely than I normally would. Probably not a big, or any, deal in general but in the cases it might be, it will make me angry with the original dev. That said, I habitually use some constructions that violate my stated policy of the necessary, like +shift, so I am not really one to talk. :P