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
Date:
June 21, 2008 13:17
Subject:
[perl #56194] Regex: (((??{1 + $^N}))) behaves differently in 5.10.0 than in blead
Message ID:
rt-3.6.HEAD-6656-1214071434-1224.56194-75-0@perl.org
# New Ticket Created by  Bram 
# Please include the string:  [perl #56194]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=56194 >


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?


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