Embperl - building dynamic websites with Perl


DESCRIPTION
[ Content ] [ Next: Example for generating a serial letter from a database >> ]

Class derived from Embperl::Syntax to define the syntax for RTF files. RTF files can be read and written by various word processing programs. This allows you to create dynamic wordprocessing documents or let process serial letters thru Embperl.

Currently Embperl regocnices the fields DOCVARIABLE, MERGEFIELD and NEXT. Variablenames are resolved as hash keys to $param[0] e.g. foo.bar referes to $param[0]{foo}{bar}, the @param Array can by set via the param parameter of the Execute function. NEXT moves to the next element of the @param array. If the end of the document is reached, Embperl repeats the document until all element of @param are processed. This can for example be use to tie a database table to @param and generate a serial letter.

NOTE: Extenting this syntax to support full Embperl support (like embedding Perl into RTF file is planned, but not implemented yet)


[ Content ] [ Next: Example for generating a serial letter from a database >> ]


© 1997-2023 Gerald Richter / actevy