Re: Perl preprocessor

2012-05-06 Thread Manfred Lotz
On Fri, 4 May 2012 23:01:46 -0700 Jim Gibson wrote: > > 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 be

Re: Perl preprocessor

2012-05-05 Thread Jim Gibson
On May 5, 2012, at 7:01 AM, sono...@fannullone.us wrote: > On May 4, 2012, at 11:01 PM, Jim Gibson wrote: > >> Consider the Text::Template module, which allows you to embed Perl code in >> your document. I have used it for generating C++ code. > > Jim, > > How does Text::Template compar

Re: Perl preprocessor

2012-05-05 Thread sono-io
On May 4, 2012, at 11:01 PM, Jim Gibson wrote: > Consider the Text::Template module, which allows you to embed Perl code in > your document. I have used it for generating C++ code. Jim, How does Text::Template compare to Mason2 for something like this? Have you ever used it? Marc --

Re: Perl preprocessor

2012-05-04 Thread Jim Gibson
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

Re: Perl preprocessor

2012-05-04 Thread Manfred Lotz
On Fri, 4 May 2012 20:27:36 +0200 Paul Johnson wrote: > On Fri, May 04, 2012 at 08:16:01PM +0200, Manfred Lotz wrote: > > Hi there, > > I'm looking for a Perl preprocessor which should roughly be able to > > work like this: > > > > In a document I have begin and end markers, say ## for both. Be

Re: Perl preprocessor

2012-05-04 Thread Uri Guttman
On 05/04/2012 02:16 PM, Manfred Lotz wrote: Hi there, I'm looking for a Perl preprocessor which should roughly be able to work like this: In a document I have begin and end markers, say ## for both. Between those end markers there is perl code which should be run and everything which goes to std

Re: Perl preprocessor

2012-05-04 Thread Paul Johnson
On Fri, May 04, 2012 at 08:16:01PM +0200, Manfred Lotz wrote: > Hi there, > I'm looking for a Perl preprocessor which should roughly be able to > work like this: > > In a document I have begin and end markers, say ## for both. Between > those end markers there is perl code which should be run and