develooper Front page | perl.perl5.porters | Postings from February 2003

Re: [perl #21348] Regex remembers too much ?

Thread Previous | Thread Next
From:
andreas.koenig
Date:
February 23, 2003 18:52
Subject:
Re: [perl #21348] Regex remembers too much ?
Message ID:
m3wujqo0eo.fsf@k242.linux.bogus
>>>>> On Mon, 24 Feb 2003 04:01:39 +0200, Enache Adrian <enache@rdslink.ro> said:

  > On Sun, Feb 23, 2003 at 11:40:52PM -0000, perl-5.8.0@ton.iguana.be (via RT) wrote:
 >> 
 >> perl -wle '$_="a"; print 1 if /\pL+$/;s/a//; $_="a"; print 2 if /\pL+$/;'
 >> 1
 >> 
 >> Where did the second match go ????

  > No longer in bleadperl.

  > Maybe that's my patch to S_regrepeat ( change #18608, pushed further by
  > jhi with #18609 ) which fixed it ?

----Program----
$_="a"; print 1 if /\pL+$/;s/a//; $_="a"; print 2 if /\pL+$/;

----Output of .../perl-5.8.0@18652/bin/perl----
1
----EOF ($?='0')----
----Output of .../perl-5.8.0@18653/bin/perl----
12
----EOF ($?='0')----


-- 
andreas

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