Without the options, any attempt to use a regex to match a multi-line string will fail early and obviously.
In my own experience that "early and obviously" is...optimistic.
Personally, I'd much rather that I got bitten by my misunderstandings the first time, or the first few times, I tried to do something that exposed that misunderstanding, than have only have it come to light when my cargo-culting mysteriously fails to match my actual requirements.
It's not cargo-cult when people choose to do it deliberately, as a mechanism to help prevent the types of mistakes they habitually make. It's like regularly using strict (incidentally, yet another default that has been changed in more recent versions of Perl).

As long as the vast majority of Perl users I encounter unthinkingly describe /^foo/ as "foo at the start of a line" and /.*/ as "match any number of any character" (and describe them that way even when they actually know better), then I'm going to go on suggesting that people always use the regex flags that make their code work they way their brain thinks.

I sincerely respect your right to disagree, and admire your determination to encourage people to better understand the actual meaning of the constructs they use.

For myself, I'd rather adapt the language defaults to the way its users actually think than force its users to adapt their thinking to the way the language unfortunately defaults.

Damian


In reply to Re^8: example of 'm / / m' related example and compare to 'm / / s' by Anonymous Monk
in thread PERL regex modifiers for m// by rockstar99

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.