# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #116761] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=116761 >
<masak> rn: $_ = 'foo'; /(o+)/; say $0 <p6eval> rakudo 8369e6, niecza v24-23-g0520c7c: OUTPUT«Any()» <masak> my expectations here are 'oo' <masak> any second opinion? <jnthn> m <masak> that's a very short opinion. :P <jnthn> rn: $_ = 'foo'; m/(o+)/; say $0 <p6eval> rakudo 8369e6, niecza v24-23-g0520c7c: OUTPUT«「oo」» <masak> oh :) <masak> thank you. :> <PerlJam> masak: though, that's a subtle problem if it tripped you up :) <masak> yeah, I tend not to care about the 'm' in 'm//' <masak> it works in a lot of places without it. <PerlJam> maybe make // in sink context DTRT or carp about it <masak> rn: $_ = 'foo'; say "huzzah!" if /o+/ <p6eval> rakudo 8369e6, niecza v24-23-g0520c7c: OUTPUT«huzzah!» <masak> ...for example. <masak> also DTRT in grep. <jnthn> Boolification triggers it to match. <jnthn> (in the grep case) <jnthn> (and the if one) <jnthn> mebbe sink should also :) <pmichaud> fwiw, S05 says that /.../ should match immediately in void context <pmichaud> (sink context) <pmichaud> which would've resolved masak++'s issue above <masak> \o/ * masak submits rakudobug <pmichaud> S05:2271