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

Re: ANCH_MBOL

Thread Previous
From:
demerphq
Date:
January 30, 2012 02:04
Subject:
Re: ANCH_MBOL
Message ID:
CANgJU+VEn81M=tSukGEu5p2vunox_C4XZG3Usoo7t0ouRRA1dg@mail.gmail.com
On 30 January 2012 09:19, demerphq <demerphq@gmail.com> wrote:
> On 30 January 2012 08:53,  <hv@crypt.org> wrote:
>> Oops, I think I tried to mail this from the wrong machine.
>>
>> For your /^/m v. /[^\n]*/ patch, I was looking for an explanation in the
>> code why the change fixes the latter without breaking the former, but
>> didn't find one. Any chance you could add a comment to clarify that?
>
> Ah sure. Off the top of my head I think it is because the opcode for ^
> does the right thing internally in regmatch, but when it is implicit
> it isnt actually there, so basically the implicitness just controls
> the outer loop, not the behaviour of opcodes inside the inner loop.

BTW, I meant to add that I provided tests that this works, so we wont
regress on it.

Anyway, I'll try to do a patch tonite.

Yves


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

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