develooper Front page | perl.perl5.porters | Postings from August 2016

[perl #84578] Bug report: error with \L, \l, \U and \u operators

Thread Previous | Thread Next
From:
Father Chrysostomos via RT
Date:
August 15, 2016 21:30
Subject:
[perl #84578] Bug report: error with \L, \l, \U and \u operators
Message ID:
rt-4.0.24-2454-1471296605-255.84578-15-0@perl.org
On Mon Aug 15 14:24:23 2016, sprout wrote:
> On Mon Aug 15 12:00:59 2016, public@khwilliamson.com wrote:
> > but I don't know about  this:
> >
> > blead -le 'print qr/\l\ABCD/'
> > (?^:\ABCD)
> 
> lcfirst '\A' is equivalent to lc('\\') . 'A'.  No surprises there.

Oh, I see what you are getting at.  qq behaves differently, because things happen in a different order:

$ perl -lwe 'print "\l\ABCD"'
Unrecognized escape \A passed through at -e line 1.
aBCD

-- 

Father Chrysostomos


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

Thread Previous | Thread Next


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