Quoting Karl Williamson from #128213 for perl5: No deprecation warning on literal left curly bracket in /.{/ etc:

So I tried to raise the warning only where the left brace could, with our plans, mean something other than a literal left brace. It turns out that there is lots of code like qr/{..../. That '{', since it's the first thing, can only be a left brace. And similarly in qr/^{.../ or qr/ ... ({...) .../, it can only be a left brace. So there is no need to disturb code where there is not going to be ambiguity. And this cuts down the amount of disruption significantly.

And quoting the 5.26.0 perldiag entry for "Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex":

... The contexts where no warnings or errors are raised are:

Perhaps also relevant: #131352 for perl5: Unescaped literal "{" characters appear not always to be illegal.


In reply to Re: Only sometimes deprecated? "Unescaped left brace in regex is deprecated" by haukex
in thread Only sometimes deprecated? "Unescaped left brace in regex is deprecated" by LanX

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.