develooper Front page | perl.perl5.porters | Postings from June 2012

Re: Fwd: [perl #6011] /imsx not visible inside (??{})

Thread Previous | Thread Next
From:
demerphq
Date:
June 5, 2012 23:43
Subject:
Re: Fwd: [perl #6011] /imsx not visible inside (??{})
Message ID:
CANgJU+W7y-2EBf7thc-dEzdf1+mSQGpL2LDnqgir=8sRhjp5Pw@mail.gmail.com
On 6 June 2012 00:33, Ricardo Signes <perl.p5p@rjbs.manxome.org> wrote:
> * Leon Timmermans <fawaka@gmail.com> [2012-06-05T18:24:20]
>> On Wed, Jun 6, 2012 at 12:20 AM, Leon Timmermans <fawaka@gmail.com> wrote:
>> >
>> > I think /(??{ $some_pattern_string })/ should do the same as
>> > /$some_pattern_string/, so I would see this as a bug.
>
> Do you think this is also a bug?
>
[snip example of capture buffers not working]

Note the docs say "and *matched* as if it were inserted instead of
this construct." (emphasis added), it does not say "behaves exactly
the same as", or "captures the same thing as". And indeed it is
documented as such since at least 6bda09f9.

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