On May 4, 2012, at 12:31 PM, Manfred Lotz wrote: > > Thanks to both (Uri) of you for your reply. > > I recognize that my example was bad. If I just would like to substitute > stuff then of course a Template module would be best. > > But let us say I want to do calculations in a larger document. Perhaps > define somes subroutines I could use later. > > I'm just looking into Mason, and wow, it seems to have quite some > capabilities. So I will investigate this further. >
Consider the Text::Template module, which allows you to embed Perl code in your document. I have used it for generating C++ code. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/