Next: Tables by tag Previous: Embedding PerlPoint into PerlPoint Contents: Contents |
This feature offers dynamic PerlPoint generation at translation time.
\EMBED{lang=perl}hello\END_EMBED |
Embedded Perl is active contents - see the special chapter about it.
If active contents is enabled, embedded Perl code is evaluated. The code is expected to produce a PerlPoint string which then replaces the inclusion tag and is read like static PerlPoint.
If the included code fails, an error message is displayed and the result is ignored.
Here's another example:
\EMBED{lang=PERL} # build a message my $msg="Perl may be embedded as well."; # and supply it $msg; \END_EMBED |
The feature is of course more powerful. You may generate images at translation time and include them, scan the disk and include a formatted listing, download data from a webserver and make it part of your presentation, autoformat complex data, include formatted source code, keep your presentation up to date in any way and so on.
Next: Tables by tag Previous: Embedding PerlPoint into PerlPoint Contents: Contents |