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

[perl #56194] Regex: (((??{1 + $^N}))) behaves differently in 5.10.0 than in blead

From:
Bram via RT
Date:
June 29, 2008 10:56
Subject:
[perl #56194] Regex: (((??{1 + $^N}))) behaves differently in 5.10.0 than in blead
Message ID:
rt-3.6.HEAD-18542-1214736849-1744.56194-15-0@perl.org
On Sat Jun 21 11:03:51 2008, p5p@perl.wizbit.be wrote:
> While testing [perl #27603] to see if the warning is gone I noticed 
this:
> 
> 
> perl-5.10.0 -wle 'if (123 =~ /^(\d)(((??{1 + $^N})))+$/) { print  
> "match"; } else { print "no match"; }'
> match
> 
> perl-blead -wle 'if (123 =~ /^(\d)(((??{1 + $^N})))+$/) { print  
> "match"; } else { print "no match"; }'
> no match
> 
> 
> And:
> 
> perl-5.10.0 -wle 'if (122 =~ /^(\d)(((??{1 + $^N})))+$/) { print  
> "match"; } else { print "no match"; }'
> no match
> 
> perl-blead -wle 'if (122 =~ /^(\d)(((??{1 + $^N})))+$/) { print  
> "match"; } else { print "no match"; }'
> match
> 
> 
> Is this change of behaviour intended?

If I revert patch 32857 then it behaves in the same way as 5.10.0.

http://public.activestate.com/cgi-bin/perlbrowse/p/32857


Kind regards,

Bram



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About