perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre Landwehr <andre.landw...@gmx.net>
Subject 2.0b8 Embperl::Object problem
Date Thu, 22 Aug 2002 15:22:09 GMT
Hi again,
Embperl files run quite ok on my 2.0b8 installation now, but
Embperl::Object does strange things which I hunted the whole day,
but I don't come closer...
I have an object base file _base.epo which looks like this:
[- $req = shift; -]
[- Execute ({inputfile => '_htmlheader.epo', package => __PACKAGE__}); -]
[- Execute ({inputfile => '*', package => __PACKAGE__}); -]
[- Execute ({inputfile => '_htmlfooter.epo', package => __PACKAGE__}); -]

If the _htmlheader.epo file contains only html just header and
footer are displayed, '*' is ignored completely (I can repair
that by just saying Execute ('*'), but I want to have it in
__PACKAGE__). 
If _htmlheader.epo contains [- print OUT "something"; -] it gets even
worse. The output looks like first the print statement is
executed, then the http headers are sent and then then
_htmlheader.epo and _htmlfooter.epo.

My configuration looks like this:
AddType text/html;charset=ISO-8859-1 .epo
PerlWarn On
PerlModule MD5
PerlModule Embperl
PerlModule Apache::DBI
EMBPERL_ESCMODE 0
EMBPERL_SESSION_CLASSES "File Semaphore"
EMBPERL_SESSION_ARGS "Directory=/tmp"
EMBPERL_COOKIE_PATH "/"
<Files *.epo>
    EMBPERL_APPNAME myapp
    EMBPERL_OPTIONS 16388
    EMBPERL_OBJECT_BASE _base.epo
    EMBPERL_OBJECT_STOPDIR /var/www
    EMBPERL_OBJECT_ADDPATH :/var/www/components:
    SetHandler  perl-script
    PerlHandler Embperl::Object
    Options     ExecCGI
</Files>

I think it has to do with my configuration because the same pages worked
without problems under 1.3.x, but I run out of ideas...

Andre

--
"The inside of a computer is as dumb as hell, but it goes like mad!"
(Physicist Richard Feynman)


Mime
View raw message