RE: Help: Migrating from embperl 1.3 to Embperl 2

2010-04-29 Thread Andrew O'Brien
st 2007. It will probably get you 95% of the way there :) Hi all, As part of migrating a large embperl site from HTML::Embperl I ended up whipping up a quick script to convert plus blocks and foreach loops to the format required by Embperl 2.x. There are still other issues as I work through

Help: Migrating from embperl 1.3 to Embperl 2

2010-04-29 Thread Mario Toro
Hello, How can do a perl regular expresion for search and replace blocks like [+ command1 ; command2; command3 +] with [+ do { command1 ; command2; command3 } +] We try with some like this : cat file.epl |perl -na -e'if ($_ =~ m/\[\+( *.+? *)\+\]/g ){ print " do {$1}\n"} ;' But

RE: Embperl 2 questions

2008-07-08 Thread Gerald Richter
Hi, > > We are currently trying to upgrade Apache1 to Apache2. > In Apache1, we are using Apache::SSI with

RE: Where to look for Embperl 2 docs (was: Newbie can't turn off html processing in Embperl 2.0)

2005-10-02 Thread Gerald Richter
> > One more question, if I may. Is there a place were should I > be looking for documentation on 2.x. The docs for 2.x at: > http://perl.apache.org/embperl/pod/doc/Embperl.htm > ...don't seem to cover much of the features I've been looking > for (such as Embperl_Syntax) so I end up looking at t

RE: Embperl 2 and Apache 2

2005-07-12 Thread Gerald Richter
> > Can Embperl version 2 run under Apache 1.3.x or do I have to > upgrade to Apache 2? Thanks! > Embperl 2 works under Apache 1.3 and Apache 2. You can use both. Only on Windows only Apache 1.3 is supported

Embperl 2 and Apache 2

2005-07-12 Thread Williams, David G. (HQ-IF000)[INDUS]
Title: Embperl 2 and Apache 2 Can Embperl version 2 run under Apache 1.3.x or do I have to upgrade to Apache 2?  Thanks!

RE: Embperl 2 final ?

2005-06-02 Thread Gerald Richter
Hi, > > What is the timeframe for Embperl 2.0 final/gold/whatuwannacallit? > > If I didn't misunderstand, mod_perl 2 is finally final, so > Embperl 2 has a chance to becoming same. Can you (well, > Gerald, I believe) make a guesstimate about when it will be so? &

Embperl 2 final ?

2005-06-01 Thread Kaare Rasmussen
Hi What is the timeframe for Embperl 2.0 final/gold/whatuwannacallit? If I didn't misunderstand, mod_perl 2 is finally final, so Embperl 2 has a chance to becoming same. Can you (well, Gerald, I believe) make a guesstimate about when it will

Embperl 2 final ?

2005-06-01 Thread Kaare Rasmussen
Hi What is the timeframe for Embperl 2.0 final/gold/whatuwannacallit? If I didn't misunderstand, mod_perl 2 is finally final, so Embperl 2 has a chance to becoming same. Can you (well, Gerald, I believe) make a guesstimate about when it will

RE: Embperl 2 for Apache 2 on SUSE Linux 9.3

2005-05-26 Thread Gerald Richter
Hi > > > do you have LoadModule embperl_module "/path/to/Embperl.so" > in apache > > config? > > Thanks for the advice. > > I did include it in the configuration file, but it is alas > one of the files that SUSE decides to overwrite on startup. > It wants to do some magic so I have to do so

Re: Embperl 2 for Apache 2 on SUSE Linux 9.3

2005-05-25 Thread Kaare Rasmussen
Hi > do you have LoadModule embperl_module "/path/to/Embperl.so" in apache > config? Thanks for the advice. I did include it in the configuration file, but it is alas one of the files that SUSE decides to overwrite on startup. It wants to do some magic so I have to do some un-magic so it can

RE: Embperl 2 for Apache 2 on SUSE Linux 9.3

2005-05-24 Thread Gerald Richter
> > > Alas, Novell doesn't include Embperl with its distribution. It does > > however have Apache 2 and mod_perl 2. How dificult is it to get > > Embperl 2 to run on top of that? > > SUSE 9.3 with apache2, apache2-devel. mod_perl 2 and either > apache-prefo

Re: Embperl 2 for Apache 2 on SUSE Linux 9.3

2005-05-24 Thread Aare Vesi
Kaare Rasmussen wrote: # make test If I ignore the test and just make install, it sort of works. Strange thing is that EMBPERL_APPNAME freemoney EMBPERL_OBJECT_BASE base.tepl EMBPERL_URIMATCH "\.htm.?|\.epl$" EMBPERL_SESSION_HANDLER_CLASS "no" EMBPERL_FILESMATCH "\.htm.?|\.epl$"

Re: Embperl 2 for Apache 2 on SUSE Linux 9.3

2005-05-24 Thread Kaare Rasmussen
> # make test If I ignore the test and just make install, it sort of works. Strange thing is that EMBPERL_APPNAME freemoney EMBPERL_OBJECT_BASE base.tepl EMBPERL_URIMATCH "\.htm.?|\.epl$" EMBPERL_SESSION_HANDLER_CLASS "no" EMBPERL_FILESMATCH "\.htm.?|\.epl$" results in a startup mess

Re: Embperl 2 for Apache 2 on SUSE Linux 9.3

2005-05-23 Thread Kaare Rasmussen
> Alas, Novell doesn't include Embperl with its distribution. It does however > have Apache 2 and mod_perl 2. How dificult is it to get Embperl 2 to run on > top of that? SUSE 9.3 with apache2, apache2-devel. mod_perl 2 and either apache-prefork or apache-worker doesn't s

Embperl 2 for Apache 2 on SUSE Linux 9.3

2005-05-22 Thread Kaare Rasmussen
Hi Any easy installation guide for this combination? Alas, Novell doesn't include Embperl with its distribution. It does however have Apache 2 and mod_perl 2. How dificult is it to get Embperl 2 to run on top of that? ---

Re: Unable to run Embperl 2 with Apache 2.0.52 (Win32) mod_perl 1.99_16 Perl v5.8.3 on Windows XP SP 1

2004-10-23 Thread Randy Kobes
downloaded and installed Embperl via PPM again, using the > following command: > > ppm http://theoryx5.uwinnipeg.ca/ppms/Embperl-1.ppd > > (The name "Embperl-1" stands for "Embperl 2 for mod_perl 1.x.") Unfortunately, the "Embperl-1" package is for Embper

Unable to run Embperl 2 with Apache 2.0.52 (Win32) mod_perl 1.99_16 Perl v5.8.3 on Windows XP SP 1

2004-10-23 Thread Perry Valdez
eg.ca/ppms/Embperl-1.ppd (The name "Embperl-1" stands for "Embperl 2 for mod_perl 1.x.") Then I restarted Apache and tested it again, just to be sure. Still worked fine. Next, I edited httpd.conf again and added the following lines: PerlModule Embperl

Re: Embperl 2 doc: where?

2004-03-22 Thread Gerald Richter
Hi, > after only just about three years of waiting, I now have Embperl 2 > up > and running. I'm a bit slow, I know, but not that much - I misseed > only about 7 betas of Embperl 2 ;-) (sorry, Gerald, I couldn't resist) > I should have made a new beta for every chan

Embperl 2 doc: where?

2004-03-22 Thread Robert
Hello, after only just about three years of waiting, I now have Embperl 2 up and running. I'm a bit slow, I know, but not that much - I misseed only about 7 betas of Embperl 2 ;-) (sorry, Gerald, I couldn't resist) I reread README.v2, it's great, but is there any more docs?

Re: in Apache 2 with mod_perl 2 (and Embperl 2)

2004-02-14 Thread Gerald Richter
> my $s = Apache->server; > I think this have been renamed in mod_perl 2. Using Apache::compat might solve your problem. If not, the mod_perl mailing list is a better place to ask Gerald -- Gerald Richter ecos electronic commu

in Apache 2 with mod_perl 2 (and Embperl 2)

2004-02-12 Thread Stefan Cars
Hi! I'm having trouble getting doing some perl configuration within in httpd.conf with Apache 2 and mod_perl 2 (both latest version as of today). Using this do not work: use Apache::DBI; use Snowfall::Database3; use Apache::PerlSections (); use Apache::ServerUtil (); use Apache::Server; my $s =

Re: help Windows + Apache 2 + Embperl 2

2004-01-23 Thread Gerald Richter
2.1. So for now you can only use Apache 1, mod_perl 1 and Embperl 2 on Windows, this works but is a little slower, than the threaded Embperl version will be. Gerald P.S. Please send any furter questions to the Embperl mailing list (unless you re

Re: Problem with charset in embperl 2

2003-10-02 Thread Gerald Richter
> > i have this file: > this is the title > > > special chars in spanish: > áéíóú > > if i save this file using UTF-8 and i get it using embperl 2 i see > this: special chars in spanish: áéíóà > > if i save the file using ISO-8859-1 everything works fi

Problem with charset in embperl 2

2003-09-11 Thread ckassab
Hi all: i have this file: this is the title special chars in spanish: áéíóú if i save this file using UTF-8 and i get it using embperl 2 i see this: special chars in spanish: áéíóà if i save the file using ISO-8859-1 everything works fine(but what happen with thecharset?). if i change

Re: Embperl 2.xx and Apache 2.0.x on Windows

2003-06-13 Thread Gerald Richter
>Thanks Gerard. If worst come to worst, I could always go back to Apache 1.xx and Embperl 1.xx. >Any idea of an ETA for Embperl 2.xx for Windows >platform? Embperl 2 runs on Windows, but only with mod-perl 1.x and Apache 1.3 It's hard to say when it will work with Apache 2

Re: Latest Embperl 2.x

2003-06-09 Thread Gerald Richter
> > I've been out of the loop for a few months so I'm not too sure what's up > right now..but... > > My webserver is running "Embperl/2.0b9_dev-3". Are there any significant > updates since this build? If so, where can I obtain these updates? Do they > break anything functional in the prior release

Re: Troubles with Embperl 2 latest CVS versions instalations

2003-06-09 Thread Gerald Richter
st Sent: Thursday, May 29, 2003 12:35 PM Subject: Troubles with Embperl 2 latest CVS versions instalations Hi All,   I have troubles with installation of the Latest Embperl2 CVS snapshots on my server   My configuration: Linux LFS  built for i686-linux Apache/1.3.27 (Unix

Troubles with Embperl 2 latest CVS versions instalations

2003-05-29 Thread Kyncl
Hi All,   I have troubles with installation of the Latest Embperl2 CVS snapshots on my server   My configuration: Linux LFS  built for i686-linux Apache/1.3.27 (Unix) mod_perl/1.27 mod_ssl/2.8.14 OpenSSL/0.9.7b  Perl, v5.8.0 Latest DBD::Pg and DBI   On this configuration Embperl 1.3.6 works p

Re: embperl 2 subs bug

2002-11-01 Thread Kee Hinckley
At 12:40 PM -0500 11/1/02, Ilia Lobsanov wrote: I'm attaching a file which demonstrates a bug in Embperl 2.0b8 - 2.0b9-dev3 When run via embpexec.pl, the html output contains '>' at the end, which shouldn't be there. I saw something similar recently and was about to report it when I discovered

embperl 2 subs bug

2002-11-01 Thread Ilia Lobsanov
I'm attaching a file which demonstrates a bug in Embperl 2.0b8 - 2.0b9-dev3 When run via embpexec.pl, the html output contains '>' at the end, which shouldn't be there. ilia. [- %subjects = ( "Var1" => 'foo', "Var2" => 'bar'); -] [$ sub generate_subject_options $] [$ foreach $name (

Re: embperl 2 session management

2002-08-22 Thread Andre Landwehr
On Thu, Aug 22, 2002 at 11:53:32AM +0200, Gerald Richter - ecos gmbh wrote: > Apache::Session uses a hash function to select a semaphore out of a array. > It may cause the the deadlock if both %udat and %mdat use the same one. If I > have it right in mind per default we have 32 semaphores, to whic

Re: embperl 2 session management

2002-08-22 Thread Gerald Richter - ecos gmbh
>> [+ $mdat{cnt}++ +] >> >> Does it work or do you get the same problems? >Ah, ok, that works. But the problem returns as soon as I have >both udat and mdat in the page. Maybe it is Apache::Session or >Apache::SessionX getting confused about having two session id's for >one page and only one semap

Re: embperl 2 session management

2002-08-22 Thread Andre Landwehr
On Thu, Aug 22, 2002 at 06:52:45AM +0200, Gerald Richter wrote: > Strange, %udat and %mdat are handled excatly the same, they just get a > different session id. > > If you make a very simple page which just contains > > [+ $mdat{cnt}++ +] > > Does it work or do you get the same problems? Ah, o

Re: embperl 2 session management

2002-08-21 Thread Gerald Richter
>> >> Seems like a problem with semaphores inside of Apache::Session. You may try >> to remove the semaphore with ipcrm so it gets recreated (you can view it >> with ipcs). > >Well, exactly that seems to be the case. As soon as I kill the >semaphore with ipcrm the page is displayed correctly, even

Re: embperl 2 session management

2002-08-21 Thread Andre Landwehr
On Tue, Aug 06, 2002 at 06:36:02PM +0200, Gerald Richter wrote: > > I have Apache::SessionX installed and > > Embperl_Session_Config "File Semaphore" > > You don't need this when you have made it the default during > Apache::SessionX Makefile.PL run > > > as the only session configuration option

Re: Minimum requirements for Embperl 2

2002-08-11 Thread Gerald Richter
Hello, > > is there a definitive list of dependencies for Embperl2. > > I need to set it up on RH7.x, > if anyone has a recipe I'd be grateful (more RPMs than self compiled is > better). will it work on Apache1/mod_perl1? > Apache 1 and mod_perl 1 is ok. Perl 5.005 is required. If you want to run

Re: Problems with EmbPerl 2.x

2002-05-21 Thread Cameron McBride
> [3332]ERR: 26: Logfile /tmp/embperl.log open error: Permission denied > [3332]ERR: 66: Embperl Session handling DISABLED because of the following > error: Can't locate Apache/SessionX.pm in @INC (@INC contains: > /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 > /usr/lib/perl5/site_p

Problems with EmbPerl 2.x

2002-05-21 Thread Leeland Heins
When I try to run a page I've written with EmbPerl 2.0b7 I get the following: [3332]ERR: 26: Logfile /tmp/embperl.log open error: Permission denied [3332]ERR: 66: Embperl Session handling DISABLED because of the following error: Can't locate Apache/SessionX.pm in @INC (@INC contains: /usr/l

Re: Designing embperl for WYSIWYG editors - hope in embperl 2?

2002-03-14 Thread Gerald Richter
> > That does look like it has the functionality, although I the > macro-substitution perl-code-as-a-string model doesn't look fun to > parse. This is the way Embperl compiler currently takes it syntax definitions. Also it not always looks very nice, it's optimized so that most of the action is m

Re: Recipe at top of the file (was: Designing embperl for WYSIWYG editors - hope in embperl 2?)

2002-03-14 Thread Gerald Richter
> > This reminds me of something else I'd been meaning to ask. Have you > considered some type of meta-directive that could be placed at the > top of a file and would specify the recipe with which it should be > processed? Currently the caller decides this, but this would allow > you to make the

Re: Designing embperl for WYSIWYG editors - hope in embperl 2?

2002-03-13 Thread Kee Hinckley
At 1:36 PM +0100 3/13/02, Gerald Richter wrote: >You can define a syntax module that is derived from Embperl::Syntax::HTML, >this would could contain something like > > >sub new > > { > my $class = shift ; > > my $self = Embperl::Syntax::HTML::new ($class) ; This reminds me of somethi

Re: Designing embperl for WYSIWYG editors - hope in embperl 2?

2002-03-13 Thread Gerald Richter
Hi, yes, of course there is hope :-) > > Here's what I'd like to be able to do, making up some syntax on the > fly. (Including a new kind of sub declaration, but you get the idea.) > > Home > > [$ sub pagelink($tagname, $tagarray, $taghash, $tagstring, > $content, $endtag) $] > H

Designing embperl for WYSIWYG editors - hope in embperl 2?

2002-03-05 Thread Kee Hinckley
Site templates often contain page-specific code. Tools like DreamWeaver don't deal with this well (eventually they'' need design-time conditionals, but they aren't there yet). Embperl deals with it fine, but As an example, a page might have a navigation element that appeared as Ho

Re: embperl 2 recipes

2002-01-28 Thread Gerald Richter
> I got this to work nicely inside an epl file: > > Execute ({ > inputfile => 'test.xml', > recipe => 'EmbperlXalanXSLT', > xsltstylesheet => 'test.xsl' > }) ; > > But what i really want to do is something lik

embperl 2 recipes

2002-01-28 Thread Patrick Tully
Hi, Does anyone know where i could find some examples of how recipes are used. I've looked over the recipes that come with embperl 2, but it doesn't really say how to use them. I've also looked at the perldoc of Recipes, but I remain confused. I got this to work nicely ins

Re: Embperl 2

2002-01-14 Thread Akshay Arora
> The increasingly ubiquitous Java also can translate to > cheaper in-house or out-sourced support for a product. > What do you suppose the ratio of Java to Embperl > programmers is? I don't think you can count the Perl > CGI programmers out there as Embperl programmers since > they must

Re: Embperl 2

2002-01-10 Thread Gerald Richter
> > Gerald's response has me considering doing production > sites in 2. I agree that Embperl is as good for some > applications and even better for many. However, I > need to sell my product and services. Java and XML > are words everyone knows and associates with some kind > of revolutionary a

Re: Embperl 2

2002-01-10 Thread Jarrod Stenberg
> Then use Embperl and not Java. As far as I can see > it there is > only one reason to use JSP at all (at least if you > know Perl > already): If you have an existing Codebase from a > standalone Java > app and just want to change the GUI layer to > something > web-based. Ok, and maybe some inter

Re: Embperl 2

2002-01-10 Thread Andre Landwehr
On Wed, Jan 09, 2002 at 12:19:11PM -0800, Jarrod Stenberg wrote: > use this to model, prototype and demo, then I'd build > the sites in Java/JSP. Thing is, I move very slowly > in Java. Then use Embperl and not Java. As far as I can see it there is only one reason to use JSP at all (at least if

Re: Embperl 2

2002-01-09 Thread Gerald Richter
very slowly > in Java. I'm tempted to make production sites in > Embperl 2 instead. PHP is an option, but I have > always been skeptical of it. > Why would you like to use Perl only for prototyping and then move to Java? What are the benefits of Java for you, especialy when you n

Embperl 2

2002-01-09 Thread Jarrod Stenberg
perl will permit me to do this quickly. My thought was I'd use this to model, prototype and demo, then I'd build the sites in Java/JSP. Thing is, I move very slowly in Java. I'm tempted to make production sites in Embperl 2 instead. PHP is an option, but I have always been skeptical

Re: Delay with Embperl 2.x

2001-12-18 Thread Gerald Richter
Hi, > I've been working at converting to Embperl 2.x but I am running into a > problem. It seems that when I use the $escmode=0 option there is a > significant delay in serving the request to the client (actually, the delay is > at the end). The client seems to just

Delay with Embperl 2.x

2001-12-18 Thread Edwin Ramirez
Hello, I've been working at converting to Embperl 2.x but I am running into a problem. It seems that when I use the $escmode=0 option there is a significant delay in serving the request to the client (actually, the delay is at the end). The client seems to just hang waiting for some

Re: Embperl 2 with Apache 2 / mod_perl 2

2001-08-27 Thread Gerald Richter
> Does Embperl 2 beta run on Apache 2.0 / mod_perl 2.0 (betas)? > Not yet. Apache/mod_perl 2.0 has a different API and a different build system. Embperl has to be adapted to that. It's on the todo list Gerald - Ger

Embperl 2 with Apache 2 / mod_perl 2

2001-08-24 Thread Lukas Zapletal
Does Embperl 2 beta run on Apache 2.0 / mod_perl 2.0 (betas)? Regards Lukas Zapletal [[EMAIL PROTECTED]] BACH systems Ltd. [www.bach.cz] web programmer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: Embperl 2 bugreport

2001-07-08 Thread Gerald Richter
gt; bug #2 > > i coldn't execute an embperl script with 'embpcgi.pl'. > i got allways only a '<' from the webserver (i used apache). > the script was: > I never have tested CGI mode in Embperl 2. This is an open issue and I think will be solved in 2.0b4 >

Re: Lack of error reporting in embperl 2 ?

2001-05-14 Thread Jeff Sheffield
te bad html syntax. you could use LWP (Lib-www) and a html validator found here www.w3.org to procativaly test the output of your dynamic pages. Jeff On Mon, May 14, 2001 at 02:18:49PM +0100, Matthew Freake wrote: > This isn't so much a bug in embperl 2, as it is a lack of an expected e

Re: Lack of error reporting in embperl 2 ?

2001-05-14 Thread Gerald Richter
> [$ else $] > ... > When this page is displayed, no error is thrown up and the output is all the > html except that which would have come out of the buggy if statement. > I know that the error reporting of Embperl has to be improved, but such an error is hard to catch. The above code becomes o

Lack of error reporting in embperl 2 ?

2001-05-14 Thread Matthew Freake
This isn't so much a bug in embperl 2, as it is a lack of an expected error message I have the following script: [- $table_type=2; -] [$ if ($table_type == 1) $] One kind of table Another kind of table [$ endif $] NOTE the missing close angle bracket on the first tag !

RE: EmbPerl 2, was EmbPerl, Request Wap

2000-05-20 Thread Gerald Richter
> > I guess this will be issue for Embperl 2, were it is very easy > to define new > > tags and their behaviour and which includes the possibility for > switching > > between different tag sets. > > Do you have a place where to see the planned features for Embperl

EmbPerl 2, was EmbPerl, Request Wap

2000-05-19 Thread Kaare Rasmussen
> I guess this will be issue for Embperl 2, were it is very easy to define new > tags and their behaviour and which includes the possibility for switching > between different tag sets. Do you have a place where to see the planned features for Embperl 2? Some of the things you mention