On 11/01/2011 09:03 AM, Eric Strom wrote:
> I am working on a module and set of tools for injecting source into
> another file at compile time.
...
> The overall goal of the module is to allow people to write a macro
> function:
> sub my_0 {map "my \$$_ = 0", @_}
> And then be able to write:
> use eval my_0 qw(x y z);
...
> I have tentatively named this module `eval.pm`
> use eval 'my $x = 1';
> use eval some_sub(...);
> since `use` implies compile time and it is injecting the source into
> the currently compiling `eval`.
> but I am considering any of the following names:
> eval (my preference)
> insert
> inject
> inline
> compile
> here
How about "Macro"? Oh, that name is already taken (both capitalized and
lowercase):
http://search.cpan.org/~segv/Macro-0.2/Macro.pod
http://search.cpan.org/~gfuji/macro-0.06/lib/macro.pm
Are there more macro modules on CPAN? What does your module do that is
different/ better than the CPAN modules?
David