payload++ brought this up on #perl6: in current Rakudo, $string ~~ /re/ sets $/ in the scope in which the expression appears, ie
'a' ~~ /./; say $/; # ouput: a But $str.match(..) and $str.subst don't. The spec is rather silent, it says "There are also method forms of m// and s///: [...] There is no syntactic sugar here". I setting of OUTER::$/ considered syntactic sugar? I don't care either way, I'd just like some clarification so that I can write tests and submit tickets (if appropriate). Cheers, Moritz