The match object $/ in not visible on its own because subst evaluates the regex in a different scope.
Does it? Because when I write, e.g:
say "foo".subst: /(fo)o/, {$/[0].flip}I get, as I expected, "of"
In reply to Re^2: perl6 match variable
by grondilu
in thread perl6 match variable
by jeckyhl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |