When I first started working on the P5 modules, the topic variable $_ was still marked as dynamic. This allowed e.g. chomp to work with Perl semantics:
multi sub chomp() { chomp CALLERS::<$_> }
In 6.d this was no longer true, which broke a lot of the P5 modules. Fortunately, jnth at the time put in a hack that allowed the P5 modules to continue to function.
However, in RakuAST we probably would not want to put in a similar hack, but instead need a more generic approach.
When I first started working on the P5 modules, the topic variable
$_was still marked as dynamic. This allowed e.g.chompto work with Perl semantics:In 6.d this was no longer true, which broke a lot of the
P5modules. Fortunately, jnth at the time put in a hack that allowed theP5modules to continue to function.However, in RakuAST we probably would not want to put in a similar hack, but instead need a more generic approach.