Re: Embperl Code Archive

2000-10-15 Thread Gerald Richter
> Does such a thing exist? I wouldn't mind sharing some of my works and seeing > what other people have done. > Currently it doesn't exists, also I would like to see it. If you send me your code and include a README, I can put it up on our ftp server and add a link to the Embperl docs and web p

Re: A newbie question

2000-10-15 Thread Gerald Richter
Hi, > > I am working on a website which is using ePerl for embedding Perl code > in HTML. Due to various reasons I am contemplating migrating to EmbPerl > or Mason. The problem is that in ePerl all code are delimited by <% > %> but in EmbPerl I see [- / [+ / [* and other delimiters. I could

Re: Execute (was: random function)

2000-10-15 Thread Gerald Richter
> > Btw. do multiple 'execute' functions get called in parallel when done > in one embperl file? eg. when I have 5 files included in index.html > via Execute could they start accessing db at the same time? > No, Execute's are execute in the order they appear in your sourcefile > If so - is there

Re: EmbperlObject error message using [$ foreach $]

2000-10-15 Thread Gerald Richter
> > Does anybody else get this behavior? > > The following code works just fine normally: > > [$ foreach $letter (A..Z) $] >[+ $letter +]  > [$ endforeach $] > > But when I use EmbperlObject instead of Embperl, I get the following errors > in my error log: > This is a know error and is alre

Re: [embperl] next within meta command causes crash

2000-10-15 Thread Gerald Richter
> Anyone notice a crash with this little test script: > > [- > @bar = ('a', 'blah', 'c'); > -] > [$ foreach $foo @bar $] > [- next if $foo eq 'blah' -] > [+ $foo +] > [$ endforeach $] > As already said, this can't work. I don't know why it crash, of course it shouldn't. Embperl 2.0 will have

Re: EmbperlObject features

2000-10-15 Thread Gerald Richter
Hi, > > There are two features which I think would be good to have in > EmbperlObject. I would like to know what you think: > I think both of the features make sense to me and I will change the behaviour of EmbperlObject in 1.3b6 accordingly Thanks for the ideas Gerald ---

Re: Compilation problem on Alpha Linux

2000-10-15 Thread Gerald Richter
Hi, >I try to compile embperl 1.3b5 on an Alpha running under Debian Linux >and I get the following errormessage for about 30 lines: > >Embperl.c:520: warning: cast to pointer from integer of different size > >The appropriate lines in source look like this: > >tReq * r; >(...) >r = (t

Re: random function

2000-10-15 Thread Gerald Richter
> I get a strange error when calling a random function - it starts > sending back broken pages when load testing, but while just > loading/reloading it works > Any errormessages in the error.log or in the embperl.log file? Gerald

Re: Recursion Problem

2000-10-15 Thread Gerald Richter
Hello all! I cannot access your pages anymore, but a recursive request would look like the following: [* # localize variables local $sth ; # don't use my here, it doesn't work with Embperl 1.x *] [- $sth = $dbh -> prepare ("SELECT * from foo where id = $param[0]") ;. $sth -> execute ; -] [$whil

Re: Continue on non-local page

2000-10-15 Thread Gerald Richter
Hi > > I need to go to another page. The page is on another system, so I cannot > Execute the file. > > How do I unconditionally and without user intervention go to another page on > another site? > > I know I can use this > [- $http_headers_out{'Location'} = "$fdat{newpage}" -] > > But this is a