develooper Front page | perl.perl5.porters | Postings from July 2014

[perl #122146] Deprecating unescaped literal { in regex breaks CPAN

Thread Previous
From:
Karl Williamson via RT
Date:
July 1, 2014 03:07
Subject:
[perl #122146] Deprecating unescaped literal { in regex breaks CPAN
Message ID:
rt-4.0.18-3988-1404184043-350.122146-15-0@perl.org
On Fri Jun 27 15:08:32 2014, ikegami@adaelis.com wrote:
> On Sun Jun 22 20:26:21 2014, public@khwilliamson.com wrote:
> > It didn't occur to me back then that there was available another
> > simple
> > way to escape a curly: qr{[{]}.  But the backslash is more legible.
> 
> $ perl -e'qr{[{]}'   # 5.20.0
> Search pattern not terminated at -e line 1.
> 
> Delimiters must be balanced since the end of the pattern must be found
> before the pattern can be parsed.

Sorry that I forgot to mention that detail
-- 
Karl Williamson

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=122146

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About