develooper Front page | perl.perl5.porters | Postings from January 2010

Re: [perl #56444] (5.12 blocker) delayed interpolation of \N{...} charnames escapes in regexes in perl 5.9.x and later causes breakage

Thread Previous | Thread Next
From:
demerphq
Date:
January 26, 2010 23:13
Subject:
Re: [perl #56444] (5.12 blocker) delayed interpolation of \N{...} charnames escapes in regexes in perl 5.9.x and later causes breakage
Message ID:
9b18b3111001262313i11e8c5dk121ffd40af0f411c@mail.gmail.com
2010/1/27 Eric Brine <ikegami@adaelis.com>:
> On Tue, Jan 26, 2010 at 5:06 PM, demerphq <demerphq@gmail.com> wrote:
>>
>> And the toker [...] should not know anything
>> about regex syntax (think alternate engines).
>> So the thing that really has to do the expansion
>> won't know whether the \N{...} is in a "normal"
>> part of the regex or if its inside a charclass.
>
> What about if it's in something like (?{ ... })?

I believe that the toker handles discriminating between "regex" mode
and "code mode" and that this isnt a problem.

Yves


-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

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