[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
[perl #56194] Regex: (((??{1 + $^N}))) behaves differently in 5.10.0 than in blead
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
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]