perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathryn Andersen <>
Subject Being called twice
Date Thu, 12 Oct 2006 21:57:18 GMT
I am using Embperl::Object 2.2.0 (with mod_perl 2.0.2 on Apache 2.0.58)
I've been trying to implement an email form, and have been completely
baffled because the mail was always being sent twice.
Trying to track things down, I put some warning calls in my
file, and it seems as if get_recipe is being called twice:
once from Embperl::Object and once from Embperl::Req
This is actually happening for all my files, not just the mail-form one,
but I never noticed it before because all the pages were displaying
fine; it wasn't until there was something which had additional effects
(sending mail) that I noticed this was happening.

Why is this happening?  Is there something I am doing wrong, some
additional setting or parameter which needs to be set so that a page is
only executed once?

My base.epl file is very simple: it just consists of one line:

        [- Execute ('*') -]

All my templating is done with custom XSLT files; one of the things that
my get_recipe does is that when the requested file is a html file,
it gives a custom recipe which does XSLT processing (with the desired
XSLT template file) followed by Embperl processing (the opposite to
EmbperlXSLT, which does Embperl processing followed by XSLT processing).

I am completely baffled, and very frustrated.

Kathryn Andersen
 _--_|\     | Kathryn Andersen	<>
/      \    | 
\_.--.*/    | GenFicCrit mailing list <>
      v     | 
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha!  |	-> Earth -> Sol -> Milky Way Galaxy -> Universe

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message