Text-MacroScript
view release on metacpan or search on metacpan
lib/Text/MacroScript.pm view on Meta::CPAN
This bundle also includes the C<macropp> and C<macrodir> scripts which allows us
to expand macros without having to use/understand C<Text::MacroScript>,
although you will have to learn the handful of macro commands available and
which are documented here and in C<macropp>. C<macropp> provides more
documentation on the embedded approach.
The C<macroutil.pl> library supplied provides some functions which you may
choose to use in HTML work for example.
=head1 MACRO SYSTEMS VS EMBEDDED SYSTEMS
Macro systems read all the text, substituting anything which matches a macro
name with the macro's body (or script name with the result of the execution of
the script). This makes macro systems slower (they have to check for
macro/script names everywhere, not just in a delimited section) and more risky
(if we choose a macro/script name that normally occurs in the text we'll end
up with a mess) than embedded systems. On the other hand because they work on
the whole text not just delimited bits, macro systems can perform processing
that embedded systems can't. Macro systems are used extensively, for example
the CPP, C pre-processor, with its #DEFINE's, etc.
( run in 2.452 seconds using v1.01-cache-2.11-cpan-71847e10f99 )