in reply to Re^2: perl6 match variablein thread perl6 match variable
And now let's try
for dir(".") -> $file { say "foo".subst: /(fo)o/, {$/[0].flip}; last; } [download]
guess what happens ?...
we get an empty string!