I'm using embperl as a template engine in a non-mod_perl context.  I
have embperl1 code like:

           $HTML::Embperl::dbgShowCleanup = 1;
            HTML::Embperl::Execute ({
                'debug' => 1,
                'escmode' => 0,
                'inputfile' => $ref->{'tpl_path'},
                'options' => HTML::Embperl::optDisableHtmlScan ()
                    | HTML::Embperl::optDisableChdir ()
                    | HTML::Embperl::optKeepSpaces ()
                    | HTML::Embperl::optRawInput ()
                    | HTML::Embperl::optDisableEmbperlErrorPage (),
                'output' => \$line,
                'param' => $ref->{'parameters'},
            });

and I want to rewrite it to work with Embperl2.  I haven't been able to
figure out how to get at the constants.  Also still looking for the
mapping from the documented environment variables of the form EMBPERL_*
to hash keys for Embperl::Execute.  I am currently digging through the
code, but pointers would be welcome :)

While experimenting, I found that the following code:

#!/usr/local/per-5.8.5/bin/perl -w
package t;
use Embperl;
print 'dbgStd()=' . $Embperl::optDisableHtmlScan . "\n";

throws a SEGV.

Yes, I really did misspell perl :)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to