You're effectively talking about in-lining the subroutines.
I did once think that it might be possible to create a true macro facility in Perl 5 by using B::Generate. The basic idea was that you could introspect the code generated by the macro using B::Bblock and similar modules, alias the formal/actual parameters, and then patch the code into the expansion scope using B::Generate.
Unfortunately, I never managed to get B::Generate to compile here, so the idea died with those attempts.
In reply to Re: Composing or chaining subroutines
by BrowserUk
in thread Composing or chaining subroutines
by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |