Hi Michael, one way of figuring out if it was called through Execute is to
use the caller funtction of Perl. The other one you can try it to use sub_req:
True is this is not the outermost Embperl component, i.e. this
component is called from within another component. Gerald From: Michael Smith
[mailto:smi...@gmail.com] Thanks Gerald, That's good to know for the future. Is there a way to
know if the code has been called through Execute? I am actually using the
same code both directly and via Execute. Michael On Wed, Jul 21, 2010 at 10:19 AM, Gerald Richter - ECOS <gerald.rich...@ecos.de> wrote: Hi Michael, @param is only intented to be
used to pass parameters to Execute. Setting it directly might work or might
not… If you want to share data
inside a request use $epreq -> {test} = 1
; The hash of $epreq is not
used by Embperl itself, so you are free to use it and it exists exactly for the
live time of one Apache request Gerald From:
Michael Smith [mailto:smi...@gmail.com]
Cc: Michael Stevens; cabell.demarcel...@dianomi.com;
Michael Smith My
problem is slightly different - though possibly a manifestation of the same
thing. I find that param isn't cleaned up between requests. I
have two epl files: set.epl: [-
$param[0]->{'test'} = 1 -] get.epl [+
Dumper(@param) +] I
find that the data from set.epl turns up when I make a subsequent request for
get.epl (in practice it's a bit more random than that if one is
running multiple processes, so I make a few requests for set.epl and then a few
for get.epl) This
only seems to be relevant if I reference param in the epl file I am calling
directly. If I reference it in epl files which are loaded in by Execute,
then they do appear to get cleaned up. Michael On
Tue, Jul 20, 2010 at 10:20 PM, Ed Grimm <ed_gr...@raytheon.com>
wrote: Note that, under Apache, the cleanup code happens at
the end of each request - each of which could have dozens of Execute calls,
between which it is very definitely NOT called.
|
- @param seems to be shared between Execute calls Michael Stevens
- Re: @param seems to be shared between Execute c... Ed Grimm
- Re: @param seems to be shared between Execu... Michael Smith
- Re: @param seems to be shared between E... Dirk Melchers
- RE: @param seems to be shared between E... Gerald Richter - ECOS
- Re: @param seems to be shared betwe... Michael Smith
- Re: @param seems to be shared ... Michael Smith
- RE: @param seems to be sha... Andrew O'Brien
- RE: @param seems to be shared ... Gerald Richter - ECOS
- Re: @param seems to be sha... Michael Smith
- Re: @param seems to be shared between Execu... Michael Stevens
- RE: @param seems to be shared between E... Gerald Richter - ECOS