Re: EMBPERL: Calling Execute() multiple time per a page.

2016-09-01 Thread Neil Gunton
Ruben Safir wrote: nice. I thought I was the lone user of embperl at this point I'm still here! My website is the largest bicycle touring journal site in the world, running on Embperl since 2000. I'm sad that it's not what all the cool kids use any more. http://www.crazyguyonabike.com/ I

Re: EMBPERL: Calling Execute() multiple time per a page.

2016-09-01 Thread Ruben Safir
On 08/25/2016 06:36 PM, Ed Grimm wrote: > What you have is a slow version of an Embperl subroutine. Use an actual > Embperl subroutine instead. Use Execute at most once to load it. > > It's my understanding that generally, templates are done in > Embperl::Object. But wh

Re: EMBPERL: Calling Execute() multiple time per a page.

2016-08-26 Thread Donavon
I modified it to use [$sub$] <https://perl.apache.org/embperl/pod/doc/Embperl.-page-3-.htm#sect_7> and [+ local $escmode = 0; $something +] I get the following error: ERR: 24: Error in Perl code: Undefined subroutine &Embperl::__82::subroutinecalled at ... *--- main.epl*

Re: EMBPERL: Calling Execute() multiple time per a page.

2016-08-25 Thread Ed Grimm
What you have is a slow version of an Embperl subroutine. Use an actual Embperl subroutine instead. Use Execute at most once to load it. It's my understanding that generally, templates are done in Embperl::Object. But when doing it that way, your template is stored in your base Em

Re: EMBPERL: Calling Execute() multiple time per a page.

2016-08-25 Thread Michael Smith
500 times - that's a lot! Maybe you could run it once offline, and save the result as HTML? Just an idea. On Thu, Aug 25, 2016 at 10:35 PM, Donavon wrote: > I have a loop that is calling Execute() to load a EMBPERL page as a > template. This template sets up and contains a boot

EMBPERL: Calling Execute() multiple time per a page.

2016-08-25 Thread Donavon
I have a loop that is calling Execute() to load a EMBPERL page as a template. This template sets up and contains a bootstrap modal and some javascript . The page I'm using as a test calls the template at least 500x. This is really slowing down the loading of the page for the client.

Fwd: Using CSS / JS in execute

2015-02-27 Thread Andrew OBrien
Just for the lists reference. -- Forwarded message -- From: Andrew OBrien Date: 28 February 2015 at 16:49 Subject: Re: Using CSS / JS in execute To: Donavon Lerman Hi Donavon, I'm not sure exactly what you mean but if I understand you correctly, then if the CSS or

Using CSS / JS in execute

2015-02-27 Thread Donavon Lerman
Is there a way to use the CSS or JS of the calling .epl in the .epl that is called via execute? Thank You, ~Donavon - To unsubscribe, e-mail: embperl-unsubscr...@perl.apache.org For additional commands, e-mail: embperl-h

RE: Input files in Execute and PerlIO layers for theirs + object_base option doesn't work

2012-10-03 Thread richter
can use the input option and read you the files on your own, just pass > the mtime of the file as mtime option and Embperl will cache your files the > same way if it has read the file on it's own. > > > > Hope this helps > > > > Gerald > > > > >

Re: Input files in Execute and PerlIO layers for theirs + object_base option doesn't work

2012-10-03 Thread Perlover
;> -Original Message- >> From: Perlover [mailto:perlo...@gmail.com] >> Sent: Wednesday, September 26, 2012 12:18 PM >> To: embperl@perl.apache.org >> Subject: Input files in Execute and PerlIO layers for theirs + object_base >> option doesn't work >> &g

RE: Input files in Execute and PerlIO layers for theirs + object_base option doesn't work

2012-10-03 Thread richter
s the same way if it has read the file on it's own. Hope this helps Gerald > -Original Message- > From: Perlover [mailto:perlo...@gmail.com] > Sent: Wednesday, September 26, 2012 12:18 PM > To: embperl@perl.apache.org > Subject: Input files in Execute and

Re: Input files in Execute and PerlIO layers for theirs + object_base option doesn't work

2012-09-26 Thread Perlover
Hi, I resolved one question (_base.epl) I found in your mail archive that i should set too 'appname' option (but no any tips in documentation about this). Now 'base.epl' works Second question about layer for reading of 'inputfile' is not resolved by me :( ---

Input files in Execute and PerlIO layers for theirs + object_base option doesn't work

2012-09-26 Thread Perlover
Dear Gerald, I have some problems with Embperl 2.4.0 (perl v.5.14.2) First, i use Embperl in my own environment (no mod_perl, apache, fcgi and etc). Only process under Starman server I want to use Embperl as: my $out; Embperl::Object::Execute({ inputfile => &q

Execute()'d .epl ignoring $http_headers_out

2012-03-10 Thread Jose Fonseca
. (Pardon me if this is the wrong way to do it, I'm maintaining a very old code base and adapting it as well as I can.) In the handler I run the basic Execute: Embperl::Execute({ inputfile => $embperl_file, output =>

RE: Execute({ object => '...' })

2010-08-04 Thread Thompson, John
Using Embperl 2.4.0_3 - embperl1.pl - use Embperl; my $obj = Embperl::Execute({ object => 'test.epl' }); print "[$obj]\n"; if($obj->can('head')) { print "YES"; $obj->head(); } - test.epl - [$ sub head $] head [$

RE: Execute({ object => '...' })

2010-08-02 Thread Gerald Richter - ECOS
Hi,   You don’t need Embperl::Object. Embperl::Object is only if you need to search (sub-)directories, like objects.   You should do something the following   Gerald       use Embperl; my $obj = Embperl::Execute({ object => 'test.epl' }); $obj -> head ;  

Re: @param seems to be shared between Execute calls

2010-07-27 Thread Michael Smith
Thank you Gerald and Andrew - that's most helpful and much appreciated Michael On Mon, Jul 26, 2010 at 9:06 AM, Gerald Richter - ECOS < gerald.rich...@ecos.de> wrote: > Hi Michael, > > > > one way of figuring out if it was called through Execute is to use the

RE: Execute({ object => '...' })

2010-07-27 Thread Thompson, John
OK, so I've decided to try to use import instead. I'm seeing this error: --- embperl2.pl --- use Embperl; Embperl::Execute({ inputfile => 'test.epl', 'import' => 1 }); head(); --- test.epl --- [$ sub head $] head [$ endsub $] main -

RE: Execute({ object => '...' })

2010-07-26 Thread Andrew O'Brien
> From: Thompson, John [mailto:jth...@midwestern.edu] > Sent: Tuesday, 27 July 2010 2:47 AM Hi John, > I am attempting to use the Execute({ object => '...' }) > feature but am seeing strange results. Here are my two files: Firstly, test.epl does not do what you thin

Execute({ object => '...' })

2010-07-26 Thread Thompson, John
I am attempting to use the Execute({ object => '...' }) feature but am seeing strange results. Here are my two files: - embperl1.pl - use Embperl; my $obj = Embperl::Execute({ object => 'test.epl' }); print "[$obj]\n"; --- - test.epl - [$ sub hea

RE: @param seems to be shared between Execute calls

2010-07-26 Thread Gerald Richter - ECOS
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:   sub_req top     Method

RE: @param seems to be shared between Execute calls

2010-07-25 Thread Andrew O'Brien
Hi Michael, > Thanks for the email. I'm actually using @param to return > data (as well as the HTML) to the epl script which is calling > another one via Execute. Perhaps there's a better way. I think you may just be missing one piece of the puzzle: using references with

Re: @param seems to be shared between Execute calls

2010-07-23 Thread Michael Smith
Hi Ed, Thanks for the email. I'm actually using @param to return data (as well as the HTML) to the epl script which is calling another one via Execute. Perhaps there's a better way. Michael On Fri, Jul 23, 2010 at 4:38 AM, Ed Grimm wrote: > If your Embperl pages are calling

Re: @param seems to be shared between Execute calls

2010-07-22 Thread Michael Smith
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> wr

RE: @param seems to be shared between Execute calls

2010-07-21 Thread Gerald Richter - ECOS
12:46 PM > To: Ed Grimm > Cc: cabell.demarcel...@dianomi.com; embperl@perl.apache.org; Michael > Smith > Subject: Re: @param seems to be shared between Execute calls > > My actual problem is occuring under Apache, and what I'm expecting is > for things to be cleaned up betw

Re: @param seems to be shared between Execute calls

2010-07-21 Thread Michael Stevens
he 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. I have not used Embperl much from within server scripts, but in my limited use there, I've never seen the cleanup code fire. I suspect each scr

RE: @param seems to be shared between Execute calls

2010-07-21 Thread Gerald Richter - ECOS
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

Re: @param seems to be shared between Execute calls

2010-07-21 Thread Dirk Melchers
en 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. I think, in "set.epl" you create a global va

Re: @param seems to be shared between Execute calls

2010-07-21 Thread Michael Smith
ference 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 wrote: > Note that, under Apache, the cleanup code happens at the end of each > request - each of which could have dozens of Execute call

Re: @param seems to be shared between Execute calls

2010-07-20 Thread Ed Grimm
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. I have not used Embperl much from within server scripts, but in my limited use there, I've never seen the cl

@param seems to be shared between Execute calls

2010-07-20 Thread Michael Stevens
Hi. We're seeing an odd bug where @param seems to be shared between Execute calls in the same process. The following code is a test case for this: #!/usr/bin/perl -w use strict; use Embperl; my $output1; my $input = '[- $param[0]->{hello} = 42; -]'; Embperl::Execute({

RE: Execute( sub =>...) and (object => ...)

2010-06-22 Thread Gerald Richter - ECOS
to:jth...@midwestern.edu] Sent: Tuesday, June 22, 2010 9:31 PM To: embperl@perl.apache.org Subject: RE: Execute( sub =>...) and (object => ...)   Ok so I figured out that the Execute( param => ... ) still goes into @param not @_. Any idea why the ( object => $template ) isn’t working?

RE: Execute( sub =>...) and (object => ...)

2010-06-22 Thread Andrew O'Brien
Hi John, > -Original Message- > From: Thompson, John [mailto:jth...@midwestern.edu] > Sent: Wednesday, 23 June 2010 5:31 AM > Ok so I figured out that the Execute( param => ... ) still > goes into @param not @_. Any idea why the ( object => > $template ) i

RE: Execute( sub =>...) and (object => ...)

2010-06-22 Thread Thompson, John
Ok so I figured out that the Execute( param => ... ) still goes into @param not @_. Any idea why the ( object => $template ) isn't working? From: Thompson, John [mailto:jth...@midwestern.edu] Sent: Tuesday, June 22, 2010 10:50 AM To: embperl@perl.apache.org Subject: Execute( sub

Execute( sub =>...) and (object => ...)

2010-06-22 Thread Thompson, John
I am attempting to #1 determine if a function is defined in a template and if so #2 call it sending it parameters all from outside the template. I first thought I might just grep for [$ sub name $] and if found do: my $html; Embperl::Execute({inputfile => $templ

RE: Embperl::Object::Execute() returns -1

2010-04-12 Thread Gerald Richter - ECOS
savicom.net] > Sent: Tuesday, March 23, 2010 5:21 PM > To: Gerald Richter - ECOS; embperl@perl.apache.org > Subject: Re: Embperl::Object::Execute() returns -1 > > There was nothing else in the apache error log. I had coded a warn > whenever > the return value was -1 and that

Re: Embperl::Object::Execute() returns -1

2010-03-23 Thread Doug Rayner
avicom.net (415) 617-9006 - Original Message - From: "Gerald Richter - ECOS" To: "Doug Rayner" ; Sent: Monday, March 22, 2010 11:46 PM Subject: RE: Embperl::Object::Execute() returns -1 Did you take a look in the error log (i.e. STDERR of your FastCGI process).

RE: Embperl::Object::Execute() returns -1

2010-03-23 Thread Gerald Richter - ECOS
Embperl::Object::Execute() returns -1 > > We use FastCGI to process Embperl requests using a slightly modified > version > of the epocgi.pl script. From time to time, the > Embperl::Object::Execute() > function returns a non-zero value. Some are associated with normal > HTTP &

Embperl::Object::Execute() returns -1

2010-03-22 Thread Doug Rayner
We use FastCGI to process Embperl requests using a slightly modified version of the epocgi.pl script. From time to time, the Embperl::Object::Execute() function returns a non-zero value. Some are associated with normal HTTP problems (e.g., the return value is 404 if there was an HTTP 404

Re: Execute() and App objects

2009-04-03 Thread Doug Rayner
Andrew; Thanks for the suggestion. I had tried using Execute with the subreq option, but I had problems, which might be related to our using FastCGI. I also had tried using Execute with the object option, which seemed ideal, but could not get it to work. Your pointer to the documentation

RE: Execute() and App objects

2009-04-02 Thread Andrew O'Brien
Hi Doug, > From within one request, I'm trying to Execute() an HTML > template from > another part of the application. That template is dependent > on App object > methods defined in the _app.pl that is in the same directory > as the HTML > template. However,

Execute() and App objects

2009-04-02 Thread Doug Rayner
From within one request, I'm trying to Execute() an HTML template from another part of the application. That template is dependent on App object methods defined in the _app.pl that is in the same directory as the HTML template. However, the Execute() seems to use the Req and App objects

Embperl::Object::Execute syntax question

2008-05-03 Thread Jeremy Malcolm
it from Embperl::Object by default, and am trying to call Embperl::Object::Execute for the cases in which it does need to use the template. Here is a simplified test version of that page: [- use Embperl::Object; $to = "cruel"; $testpage = "testhello [+ $to +] world"; Embp

Re: use and Execute differences

2007-10-10 Thread Villu Roogna
Understood and yes Embperl::Object logic is very useful indeed. Villu

RE: use and Execute differences

2007-10-10 Thread Gerald Richter - ECOS GmbH
Hi, > > Searched through the documentation and mailing lists but > could not find the exact information. > What are the most important differences between using normal > perl module with: > > use Package::Module > > $obj = Package::Module->new(); > > o

use and Execute differences

2007-10-10 Thread Villu Roogna
Hello, Searched through the documentation and mailing lists but could not find the exact information. What are the most important differences between using normal perl module with: use Package::Module $obj = Package::Module->new(); or using $obj = Execute({object => 'packag

RE: Execute in a specified syntax?

2007-04-02 Thread Gerald Richter - ECOS GmbH
> > Something like: > > [- Execute syntax="SSI" ('includes/header.shtml') -] > > perhaps? > Use [- Execute ({ syntax => "SSI", inputfile => 'includes/header.shtml'}) -] > Also, what has to be done to get embpcgi.pl to

Execute in a specified syntax?

2007-04-01 Thread Mark D. Anderson
Is there a simpler way of specifying that I'd like a particular file Execute'd in a particular syntax, than this ugly thing: [$ syntax SSI $] [$ syntax Embperl $] Something like: [- Execute syntax="SSI" ('includes/header.shtml') -] perhaps? Also, what has t

New line after Execute

2007-02-13 Thread Luiz Fernando B. Ribeiro
Hello all, It's been a long time out of Embperl... I'm using Execute inside of EmperlObject pages to produce non-html data and the newline produced after each execute is causing seriuos problems. Is there any way or option to remove this newline? I tried to use seek OUT, 0, 0 bu

RE: Embperl::Object::Execute help within PERL scripts for templating.

2006-10-05 Thread Gerald Richter
nder Apache 2.2.3. > I have successfully setup Embperl 2 for templating my > website (templates display properly for .html files). What I > am trying to do now is convert some PERL scripts I have to > make use of the Embperl templating features with only minor > modifications

Re: Embperl::Object::Execute help within PERL scripts for templating.

2006-10-04 Thread Kinetic Slam
eatures with only> minor modifications ($r->print to Embperl::Object::Execute...).A bit of additional information on my end goal for this effort is to get Embperl templating to work with my existing AuthCookie handler (putting any discussion of using Embperl cookie handlers aside for the mom

Embperl::Object::Execute help within PERL scripts for templating.

2006-10-03 Thread Kinetic Slam
with only minor modifications ($r->print to Embperl::Object::Execute...). Here is a test script before conversion: my $r = shift; subTest(\$r); sub subTest {     my $r = shift;     my ($content,$cgienvvar);     $content = "";     $content .= " Test \n";    

RE: Embperl2 and Execute

2006-08-31 Thread Gerald Richter
> > This not work too. > > > > [- > >@tmp = (1 .. 3); > > > >foreach $r (@tmp) { > > $fdat{'test_'.$r} = $r; > > $out = "\n"; > > Execute ({ input => \$out, inputfile => 'foo',

Re: Embperl2 and Execute

2006-08-22 Thread Marek Matis
I tried to do it in new version EmbPerl 2.2.0 but is doestnt work. Matis. 2.2.0 2006/8/21, Marek Matis <[EMAIL PROTECTED]>: This not work too. [- @tmp = (1 .. 3); foreach $r (@tmp) { $fdat{'test_'.$r} = $r; $out = "\n"; Execute ({ input =

Re: Embperl2 and Execute

2006-08-21 Thread Marek Matis
This not work too. [- @tmp = (1 .. 3); foreach $r (@tmp) { $fdat{'test_'.$r} = $r; $out = "\n"; Execute ({ input => \$out, inputfile => 'foo', mtime=> $r}); } -] Marek 2006/8/18, Ben K. <[EMAIL PROTECTED]>: > This is only

Re: Embperl2 and Execute

2006-08-18 Thread Ben K.
This is only demo example. I need uses Execute in loo than how Embperl 1.3. I show the same symptom... If situations allow will this be a workaround? [- @tmp = (1 .. 3); foreach $r (@tmp) { $fdat{'test_'.$r} = $r; $out .= "\n"; } Execute ({ input =>

RE: Embperl2 and Execute

2006-08-18 Thread Gerald Richter
= (1 .. 3); > > > > foreach $r (@tmp) { > > > > $fdat{'test_'.$r} = $r; > > $out = "\n"; Execute ({ > > input => \$out }); } -] > > > > Try > > $out = "\n"; Execute

Re: Embperl2 and Execute

2006-08-18 Thread Marek Matis
Not work. Embperl always cache the input code. 2006/8/18, Gerald Richter <[EMAIL PROTECTED]>: >> [-> @tmp = (1 .. 3);>> foreach $r (@tmp) {>> $fdat{'test_'.$r} = $r;> $out = "\n"; Execute ({> input => \$out }); } -] >Try$out = "\

RE: Embperl2 and Execute

2006-08-18 Thread Gerald Richter
> > [- > @tmp = (1 .. 3); > > foreach $r (@tmp) { > > $fdat{'test_'.$r} = $r; > $out = "\n"; Execute ({ > input => \$out }); } -] > Try $out = "\n"; Execute ({ input => \$out, inputfile => 'foo', mtime =

Re: Embperl2 and Execute

2006-08-18 Thread Marek Matis
This is only demo example.I need uses Execute in loo than how Embperl 1.3. 2006/8/18, Michael Smith <[EMAIL PROTECTED]>: Hi Marek,I'd suggest something a bit more like this (it's untested but hopefully you get the idea):[- @tmp=(1..3) -][$ foreach $r (@tmp) $] [$ endforeach $

Re: Embperl2 and Execute

2006-08-18 Thread Michael Smith
AIL PROTECTED]> wrote: Hi, I have problem with Execute (EmbPerl2.0r3). [-@tmp = (1 .. 3);foreach $r (@tmp) {$fdat{'test_'.$r} = $r;$out = "\n"; Execute ({ input => \$out });}-]Output is:  I need this:  Thanks Marek  

Embperl2 and Execute

2006-08-18 Thread Marek Matis
Hi, I have problem with Execute (EmbPerl2.0r3). [-@tmp = (1 .. 3);foreach $r (@tmp) {$fdat{'test_'.$r} = $r;$out = "\n"; Execute ({ input => \$out });}-]Output is:  I need this:  Thanks Marek  

RE: printing to OUT from within a package /was: erratic effect of input key in Execute

2006-03-28 Thread Gerald Richter
> > > > [- print WEB "blablabla" -] > > > > You need to print to OUT inside your Embperl code > > That works too, except when I do this in a external package, e.g. > > In an external package you need to tie a filehandle to Embperl::Out eg. tie OUT, 'Embperl::Out' ; Gerald ** Virus

printing to OUT from within a package /was: erratic effect of input key in Execute

2006-03-28 Thread PILCH Hartmut
> > [- print WEB "blablabla" -] > > You need to print to OUT inside your Embperl code That works too, except when I do this in a external package, e.g. foo/bar.pm package Foo::Bar; [...] sub say1 { print OUT "DEBUG1: "; printf OUT @_;

RE: erratic effect of input key in Execute

2006-03-27 Thread Gerald Richter
> > > I now tried various definitions, such as > > > > > > sub say { > > local $msg = shift; > > Embperl::Execute({input=>\$msg, inputfile=>$msg}); > > } > > [...] > > > and am still getting always the same

Re: erratic effect of input key in Execute

2006-03-27 Thread PILCH Hartmut
> I now tried various definitions, such as > > > sub say { > local $msg = shift; > Embperl::Execute({input=>\$msg, inputfile=>$msg}); > } [...] > and am still getting always the same string printed out. No, it does seem to be working for me no

Re: erratic effect of input key in Execute

2006-03-27 Thread PILCH Hartmut
can make this work > > in a simple script, like > > > > [- $msg = 'hello world' -] > > [- Embperl::Execute({input=>\$msg}) -] > > You always need to specify the inputfile parameter (it doesn't matter with > what value). Embperl used it as

RE: erratic effect of input key in Execute

2006-03-27 Thread Gerald Richter
lo world' -] >[- Embperl::Execute({input=>\$msg}) -] You always need to specify the inputfile parameter (it doesn't matter with what value). Embperl used it as a cache key for the source code, so if you have different source code, you should use a different string as key to inputfil

erratic effect of input key in Execute (more)

2006-03-25 Thread PILCH Hartmut
. At http://www.ecos.de/embperl/pod/doc/Config.-page-1-.htm#sect_3 I find an example of how to invoke the Embperl parser from a Perl program, and indeed I can make this work in a simple script, like [- $msg = 'hello world' -] [- Embperl::Execute({in

erratic effect of input key in Execute

2006-03-25 Thread PILCH Hartmut
At http://www.ecos.de/embperl/pod/doc/Config.-page-1-.htm#sect_3 I find the following example of how to invoke the Embperl parser from a Perl program, and indeed I can make this work in a simple script, like [- $msg = 'hello world' -] [- Embperl::Execute({in

RE: returning errors from Execute

2006-02-16 Thread Gerald Richter
ors) { > >if (/FIXME/) { > > # respond to this error > >} > > } > > > > That should enable you to respond to all the "FIXME" errors. > > I agree that this is easy to do in the case of errors which > are simply strings. However I would lik

Re: returning errors from Execute

2006-02-12 Thread Dan Lenski
or >} > } > > That should enable you to respond to all the "FIXME" errors. I agree that this is easy to do in the case of errors which are simply strings. However I would like to be able to return hash references as errors, such as with: croak \%error The way that Exe

Re: returning errors from Execute

2006-02-12 Thread Kathryn Andersen
On Sun, Feb 12, 2006 at 04:15:03PM -0500, Dan Lenski wrote: > I've recently learned to use the error-catching feature of > Embperl::Object's Execute command. The thing I'm wondering is if it's > possible to make it return just the string or object that I pass to &g

Re: returning errors from Execute

2006-02-12 Thread Dan Lenski
I've recently learned to use the error-catching feature of Embperl::Object's Execute command. The thing I'm wondering is if it's possible to make it return just the string or object that I pass to the croak/die command, rather than the complete Embperl error message. I woul

returning errors from Execute

2006-02-12 Thread Dan Lenski
I've recently learned to use the error-catching feature of Embperl's Execute command. The thing I'm wondering is if it's possible to make it return just the string or object that I pass to the croak/die command, rather than the complete error message. I would like to be

RE: Embperl::Object::Execute segfault

2005-10-09 Thread Gerald Richter
at DOM.xs:258 Could you make sure that you inlcude the parameter debug => 0x7ff in your call to Execute and send the resulting embperl.log file to me Gerald ** Virus checked by BB-5000 Mailfilter ** - To unsubscr

RE: Embperl::Execute + mod_perl + POST

2005-10-09 Thread Gerald Richter
Hi, > > I'm having some issues with Getting Embperl's fdat to work > when I call Embperl::Execute from within a mod perl handler. > > I want to do this:- > Embperl::Execute({ > #req_rec=>$self->request, >

Embperl::Execute + mod_perl + POST

2005-10-04 Thread Martin Moss
Hi all, I'm having some issues with Getting Embperl's fdat to work when I call Embperl::Execute from within a mod perl handler. I want to do this:- Embperl::Execute({ #req_rec=>$self->request, inputfile=>&

Re: Embperl::Object::Execute segfault

2005-10-03 Thread Gavin Carr
Hi Gerald, On Sun, Oct 02, 2005 at 05:58:42PM +0200, Gerald Richter wrote: > > On Sat, Oct 01, 2005 at 04:07:25PM +0200, Gerald Richter wrote: > > > > > > > > The log looks ok and shows that the bug is fixed. > > > > > > > > Could you make a stack back trace from the segfault? > > > > > > Could

RE: Embperl::Object::Execute segfault

2005-10-02 Thread Gerald Richter
> > On Sat, Oct 01, 2005 at 04:07:25PM +0200, Gerald Richter wrote: > > > > > > The log looks ok and shows that the bug is fixed. > > > > > > Could you make a stack back trace from the segfault? > > > > Could you try if make test works for you? > > > > If make test segfaults, run make testgdb

Re: Embperl::Object::Execute segfault

2005-10-01 Thread Gavin Carr
gfaults, run make testgdb to get the stackbacktrace make test works - all tests successful. My example segfaults from the commandline every time, but trying to run it under perl -d ends in a hang rather than a segfault: calix:~/tmp/embperl-object-execute$ perl -d /usr/bin/embpexec.pl execute.html Loading

RE: Embperl::Object::Execute segfault

2005-10-01 Thread Gerald Richter
> > The log looks ok and shows that the bug is fixed. > > Could you make a stack back trace from the segfault? > Could you try if make test works for you? If make test segfaults, run make testgdb to get the stackbacktrace Gerald ** Virus checked by BB-5000 Mailfilter ** ---

RE: Embperl::Object::Execute segfault

2005-09-29 Thread Gerald Richter
> On Thu, Sep 29, 2005 at 08:03:11PM +0200, Gerald Richter wrote: > > > With that patch it's certainly better, in that the page actually > > > produces some output, but that example I sent is still > segfaulting > > > for me: > > > > >

RE: Embperl::Object::Execute segfault

2005-09-29 Thread Gerald Richter
Hi, > > With that patch it's certainly better, in that the page > actually produces some output, but that example I sent is > still segfaulting for me: > > calix:~/tmp/embperl-object-execute$ embpexec.pl execute.html > 2 + 2 = 4 > Segmentation fault &

Re: Embperl::Object::Execute segfault

2005-09-28 Thread Gavin Carr
Hi Gerald, On Fri, Sep 23, 2005 at 11:30:16PM +0200, Gerald Richter wrote: > > On Tue, Sep 13, 2005 at 08:56:20AM +0200, Gerald Richter wrote: > > > > Does that make sense Gerald? The corresponding code works > > fine using > > > > HTML::EmbperlObject::Execut

RE: Embperl::Object::Execute segfault

2005-09-23 Thread Gerald Richter
Hi, > > On Tue, Sep 13, 2005 at 08:56:20AM +0200, Gerald Richter wrote: > > > Does that make sense Gerald? The corresponding code works > fine using > > > HTML::EmbperlObject::Execute. > > > > Yes, this makes more sense. > > > > Do you cal

Re: Embperl::Object::Execute segfault

2005-09-15 Thread Gavin Carr
Hi Gerald, On Tue, Sep 13, 2005 at 08:56:20AM +0200, Gerald Richter wrote: > > Does that make sense Gerald? The corresponding code works > > fine using HTML::EmbperlObject::Execute. > > Yes, this makes more sense. > > Do you call this from the commandline or from with

RE: Embperl::Object::Execute segfault

2005-09-12 Thread Gerald Richter
Hi, > > The app is my ewok CMS - > http://www.openfusion.com.au/labs/ewok/. I use > Embperl::Object::Execute for 'publishing' static pages to an > output scalar (and thence to a file). In ewok the code lives > in a perl module rather than in the page like the exam

Re: Embperl::Object::Execute segfault

2005-09-12 Thread Gavin Carr
On Tue, Sep 13, 2005 at 05:21:58AM +0200, Gerald Richter wrote: > > Porting an apache1 / HTML::Embperl app to apache2 / Embperl, > > and I'm getting segfaults doing an Embperl::Object::Execute > > under mod_perl. Simple example: > > > > - sim

RE: Embperl::Object::Execute segfault

2005-09-12 Thread Gerald Richter
Hi, > > > Porting an apache1 / HTML::Embperl app to apache2 / Embperl, > and I'm getting segfaults doing an Embperl::Object::Execute > under mod_perl. Simple example: > > - simple.html: > > 2 + 2 = [+ 2 + 2 +] > > - execute.html: > > [- Embperl:

Embperl::Object::Execute segfault

2005-09-11 Thread Gavin Carr
Porting an apache1 / HTML::Embperl app to apache2 / Embperl, and I'm getting segfaults doing an Embperl::Object::Execute under mod_perl. Simple example: - simple.html: 2 + 2 = [+ 2 + 2 +] - execute.html: [- Embperl::Object::Execute({ inputfile => 'simple.html', appname =>

RE:Tag mismatch (was: Embperl::Execute under 2.0)

2005-08-10 Thread Gerald Richter
HI Neil, > > Thanks for the (offline) help - I think I have fixed most or > all of the warnings and errors in my main body of code which > Embperl 2 was picking up on, so now I get a "clean > preload"... Good news :-) > > I had a minor issue with Embperl 2 thinking there were some > misma

Re: Embperl::Execute under 2.0

2005-08-10 Thread Neil Gunton
Gerald Richter wrote: Basically when path is in there, it crashes, when path is not there, it works. Is there anything about this that gives a clue? The path must be an array ref and not a string e.g. path => [ '/www-dev/vhosts/www.crazyguyonabike.com/htdocs/journal/', '/www-dev/vhosts/www.

RE: Embperl::Execute under 2.0

2005-08-07 Thread Gerald Richter
y, August 04, 2005 4:16 AM > To: Gerald Richter > Cc: embperl@perl.apache.org > Subject: Re: Embperl::Execute under 2.0 > > Gerald Richter wrote: > >>Hi Gerald, > >> > >>I tried adding the Embperl::Init() to the startup script, after the > >>&#

Re: Embperl::Execute under 2.0

2005-08-03 Thread Neil Gunton
Gerald Richter wrote: Hi Gerald, I tried adding the Embperl::Init() to the startup script, after the 'use' and before the preload routine is called. Now it gives a segmentation fault: I have spent some more time debugging this and it is a problem with module initialisiation order under Ap

RE: Embperl::Execute under 2.0

2005-07-26 Thread Gerald Richter
Hi Neil, > > Gerald Richter wrote: > > This should work out of the box under mod_perl 2, for mod_perl 1 > > please add a > > > > Embperl::Init () ; > > > > before the first call to Execute in your startup script. > > > > The init cal

Re: Embperl::Execute under 2.0

2005-07-25 Thread Neil Gunton
Gerald Richter wrote: This should work out of the box under mod_perl 2, for mod_perl 1 please add a Embperl::Init () ; before the first call to Execute in your startup script. The init call is done by Embperl automaticly, but under mod_perl 1 it's done a little later, so you have to

RE: Embperl::Execute under 2.0

2005-07-24 Thread Gerald Richter
2, for mod_perl 1 please add a Embperl::Init () ; before the first call to Execute in your startup script. The init call is done by Embperl automaticly, but under mod_perl 1 it's done a little later, so you have to do it manually, in case you want to execute something during startup. Let m

Re: Embperl::Execute under 2.0

2005-07-20 Thread Neil Gunton
Gerald Richter wrote: Looks like it is linked staticly. The easiest way to verify this, is to run httpd -l If mod_perl shows up it's staticly linked. Yes, it is listed there, so I guess it is static. I'm hoping that a successful move to Embperl 2.0 might make it go away. I don't expect s

RE: Embperl::Execute under 2.0

2005-07-20 Thread Gerald Richter
Hi, > > Gerald Richter wrote: > > Is mod_perl staticly compiled into Apache or loaded as module? > > I think I am building it statically into Apache. I wrote a > script to help automate the process: > Looks like it is linked staticly. The easiest way to verify this, is to run httpd -l If mo

  1   2   3   4   >