perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Shea <s...@gtsdesign.com>
Subject [ep2] using options like optDisableHtmlScan with Embper::Execute
Date Thu, 02 Dec 2004 03:31:14 GMT
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: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message