Basically a source filter which isn't filtering but only injecting code when import() is called.
(Yes it's safe, since there is no filtering/parsing involved)
It never made it to CPAN but can be found on GitHub.
https://github.com/LanX/Filter-Inject
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
In reply to Re: Pure perl lexical sub import
by LanX
in thread Pure perl lexical sub import
by NERDVANA
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |