You could use B::Hooks::EndOfScope in an import method. That's what namespace::clean uses to clean up the package's symbol table after it has been compiled.
I hope this helps, but I'm not sure this exactly fits your use case. Is there a reason you don't want to be more explicit? Like, for example:
wrap foo => sub { ... };
In reply to Re: Executing use'd/require'd/base module code *after* use'r/require'r/child is compiled?
by phaylon
in thread Executing use'd/require'd/base module code *after* use'r/require'r/child is compiled?
by dgaramond2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |