in reply to Re^2: No need to escape right brace in regex
in thread No need to escape right brace in regex

But you don't *always* get the deprecation warning:
C:\>perl -le "$_ =~ /{}/;" C:\>perl -le "$_ =~ /.+{}/;" C:\>perl -le "$_ =~ /a+{}/;" C:\>perl -le "$_ =~ /(a+)?{}/;" C:\>perl -le "$_ =~ /a{}/;" Unescaped left brace in regex is deprecated, passed through in regex; +marked by <-- HERE in m/a{ <-- HERE }/ at -e line 1. C:\>perl -le "$_ =~ /\d{}/;" Unescaped left brace in regex is deprecated, passed through in regex; +marked by <-- HERE in m/\d{ <-- HERE }/ at -e line 1. C:\>
That behaviour fits ok with the (undetailed) documentation that Athanasius found, but does it tie in at all with the cases you're describing ?
(I don't see the connection, though that doesn't mean there isn't one :-)

Cheers,
Rob

Replies are listed 'Best First'.
Re^4: No need to escape right brace in regex
by LanX (Saint) on Oct 21, 2014 at 09:28 UTC
    This is really a bit strange.

    Looks like they are only simplifying parsing of quantifiers like in /a{1,2}/ to avoid look ahead analysis.

    All other cases you've shown can not be quantifiers.

    Maybe the warning should be better phrased?

    Cheers Rolf

    (addicted to the Perl Programming Language and ☆☆☆☆ :)