in reply to Re^2: perl6 match variable
in thread perl6 match variable

And now let's try

for dir(".") -> $file { say "foo".subst: /(fo)o/, {$/[0].flip}; last; }

guess what happens ?...

we get an empty string!