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


Thread Previous
January 30, 2012 02:04
Message ID:
On 30 January 2012 09:19, demerphq <> wrote:
> On 30 January 2012 08:53,  <> 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.


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

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About