Front page | perl.beginners |
Postings from May 2012
Perl preprocessor
Thread Next
From:
Manfred Lotz
Date:
May 4, 2012 11:16
Subject:
Perl preprocessor
Message ID:
20120504201601.1a003074@arcor.com
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 stdout should go into the document.
The code should be lexical in a way that later code could refer to
previous code.
Primitive example:
This is a sample document.
## my $name = 'Manfred Lotz'; ##
My name is ## print $name; ## and I'm from Germany.
should result in the following document:
This is a sample document.
My name is Manfred Lotz and I'm from Germany.
Does anybody know about a module which could do this?
--
Manfred
Thread Next
-
Perl preprocessor
by Manfred Lotz