[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl5-porters
Subject:    Re: [perl #20684] [fix] s/// with (??{..}) inside returns wrong count
From:       Enache Adrian <enache () rdslink ! ro>
Date:       2003-02-28 2:04:34
[Download RAW message or body]

On Tue, Feb 25, 2003 at 03:05:42PM +0000, hv@crypt.org wrote:
> Thanks, applied as #18775.

It seems to fix [perl #7804] too.

Adi

--- from #7804 ---
$_ = 'abc';
$s = s{ a (?{ 'A' }) | b (?{ 'B' }) }{$^R}xg;
print "<$_> <$s>\n";

outputs : (with perl 5.7.2)
<ABc> <0>
But this should output <ABc> <2> instead.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic