develooper Front page | perl.perl5.porters | Postings from December 2011

Re: [perl #107262] Unmatched \Q \E in regexp should warn

Thread Previous | Thread Next
From:
Tom Christiansen
Date:
December 30, 2011 08:34
Subject:
Re: [perl #107262] Unmatched \Q \E in regexp should warn
Message ID:
14709.1325262873@chthon
Aristotle Pagaltzis <pagaltzis@gmx.de> wrote
   on Fri, 30 Dec 2011 10:25:15 +0100: 

> * Brian Fraser <fraserbn@gmail.com> [2011-12-30 05:15]:
>> Currently the warning is "Found \E without a preceding case
>> modification or quoted section", mostly because I felt particularly
>> unimaginative.

> Why not simply “Found \E without matching \Q, \U or \L”?  It’s shorter
> and quicker to read, and I think it’s much quicker to understand.

I do get nervous about any enumeration of the translation escapes,
because they all will need \F added to them.  

--tom

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