# New Ticket Created by Moritz Lenz # Please include the string: [perl #127701] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=127701 >
<moritz> m: '5x3' ~~ /(.)x(.)/ and say "$/[0]--$/[1]" <camelia> rakudo-moar 374fdd: OUTPUT«5x3[0]--3» <timotimo> the AST it outputs is just concatenating the value of $/ with "[0]--" and then the value of $/[1] <moritz> yes, that looks like a bug <timotimo> i'd say this is a bug. it should see that the [0] is a successful postcircumfix parse, and ignore the -- after it <timotimo> bazzaar: so, thank you for finding this bug :) <bazzaar> yes that's the kind of result I got, $0--$1 works fine Some golfing: <moritz> m: '5x3' ~~ /(.)x(.)/ and say "$/[0]--" <camelia> rakudo-moar 374fdd: OUTPUT«5x3[0]--» <moritz> m: '5x3' ~~ /(.)x(.)/ and say "$/[0]-" <camelia> rakudo-moar 374fdd: OUTPUT«5-»
