Re: special character replacements in output

2003-08-14 Thread girardot
That worked perfectly, thank you very much! Cheers, Blake Girardot - Original Message - From: "Harald Becker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 14, 2003 1:19 PM Subject: RE: special character replacements in output [+ do{ local $escmode=0; $detail_htm

RE: special character replacements in output

2003-08-14 Thread Harald Becker
[+ do{ local $escmode=0; $detail_html} +] should work... You can also skip escaping html characters if optRawInput was set (e.g. $ENV{EMBPERL_OPTIONS} = 16) Harald > -Original Message- > From: girardot [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 14, 2003 7:06 PM > To: [EMAIL PRO

Re: Embperl Book (was: Embperl Wishes and comments)

2003-08-14 Thread David Lloyd
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gerald, > Several people told me they would help to write a book. The problem is > I have a contract to write a book in german (which maybe will be > tranlated into english later), so we would need people who are able to > write in german... Alterna

Re: Problem with RE

2003-08-14 Thread Jochen Topf
On Wed, Aug 06, 2003 at 09:34:17AM +0200, Radovan Petrík wrote: > Hi , I have problem with this code. > > [- $tmp =~ /(*)/ -] > > What is wrong ? Regexes are not shell globs. Try this: [- $tmp =~ /(.*)/ -] Jochen -- Jochen Topf [EMAIL PROTECTED] http://www.remote.org/jochen/ +49-721-388298

Fw: [Jobs] JOB: (Balmain, Sydney) Programmer and Linux Sysadmin,Full Time

2003-08-14 Thread David Lloyd
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 NOTE: Excuse the crappy formatting. But seeing it mentions Embperl I thought this would be of interest. Begin forwarded message: Date: Fri, 8 Aug 2003 11:53:43 +0800 From: Linux Jobs <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [Jobs] JOB: (Ba

Re: escaping and default behavior for optRawInput with spaceship operators in HTML::Embperl -vs- Embperl-2.0b9

2003-08-14 Thread Gerald Richter
> > Of course, I can set EMBPERL_OPTIONS to optRawInput with HTML::Embperl > 2.0b5 and then I don't have to change any Embperl code to run on both > versions. > > > Did the default behavior change from version to version? > Yes, the default change during 2.0 beta. Embperl 2 now behave like Embperl

Problem with import subroutine

2003-08-14 Thread Radovan Petrík
Hi , I have two scripts. base.htm index.htm -- index.htm : [- sub test { return 'wellcome'; } -] base.htm : [- Execute ({inputfile => '*' , import => 1 }) -] [+ test () +] When I run index.htm then base.htm return error , because no find subrou

Re: Embperl Wishes and comments

2003-08-14 Thread Gerald Richter
> > Yes. Imports and library loads in general are not inherited. That's > also true in EmbperlObject and I find it somewhat of a pain there as > well. I'd like to keep those components as simple as possible, which > means not having to say things like: > [$ var $this $][- $this = shift; us

Re: chaining Links ?$db -> TableLink ('kapitel' , '-up', {'!Table'=> 'kapitel', '!MainField' =>'kapitel_id', '!LinkedFi

2003-08-14 Thread Joshua Spoerri
Excellent, thank you. On Sun, 10 Aug 2003, Gerald Richter wrote: > Am Montag, 4. August 2003 05:47 schrieb Joshua Spoerri: > > I don't think this is my case. > > > > In the example, table A has field "B_id", but table B has field > > "C_id_with_another_name". > > > > Ah I see the problem, in this

ACS Embperl talk (28th August)

2003-08-14 Thread Angus Lees
I forgot to mention that I gave an introductory talk on Embperl 2 at my local LUG (Sydney) last month. I've been asked to repeat it at this month's ACS "Open Source SIG" meeting, if anyone's interested. Meeting announcement: http://groups.yahoo.com/group/acsoss/message/49 ACS Open Source SIG:

special character replacements in output

2003-08-14 Thread girardot
I am trying to build some html, store it in a variable and then just output it later in the page. But it translates my < and > into the html entities. I read the syntax page and i thought i understood it to say i should escape my special characters to avoid the replacement so i wrote this code

Magic

2003-08-14 Thread Kee Hinckley
This isn't a bug. HTML::Embperl is doing exactly what I want, and maybe my problem is simply too little sleep. But could someone please explain to me *how* it's managing to do this? I have an HTML::Embperl Template. It does this (in greatly abbreviated form). $this = shift; Execute({

Re: Magic

2003-08-14 Thread Gerald Richter
> > Now could someone please explain to me how it is that *'s processForm > method appropriately gets invoked when I call $this->processForm, > even though I call $this->processForm BEFORE I call Execute('*')? > > Because the Embperl request object ($this in your case) is setup by Embperl::Object

Re: Can't locate Apache/SessionX.pm *and* Apache::SessionX is installed

2003-08-14 Thread Gerald Richter
> > When I restart Apache, to enable sesseion management, I get this kind of > error meassage in the embperl.log: > > [108]ERR: 66: Embperl Session handling DISABLED because of the following > error: Can't locate Apache/SessionX.pm in @INC (@INC contains: > /usr/lib/perl5/i386-linux /usr/lib/perl

Re: Nested Bug in 2.0b9

2003-08-14 Thread Gerald Richter
> > Gerald, this was from 5th July, and I am not sure what the status of the > bug is. Nothing changed since this email :-( > I know you're pressed for time, but it occurred to me that > perhaps it would help keep track of Embperl bugs if you used the bug > tracking system which SourceForge prov

Re: Embperl Book (was: Embperl Wishes and comments)

2003-08-14 Thread Gerald Richter
> > Alternatively, you could write the book in English and then do a German > translation ;-) > Yes, but doing a translation is still a lot of work (I have translated two pocket guides for O'Reilly in the past, so I know what I am talking about, and the Embperl book will surely longer then a poc

Re: Problem with import subroutine

2003-08-14 Thread Gerald Richter
> I have two scripts. > > base.htm > index.htm > -- > > index.htm : > > [- > sub test { > return 'wellcome'; > } > -] > > > base.htm : > > [- Execute ({inputfile => '*' , import => 1 }) -] > [+ test () +] > > > When I run index.htm then base.htm return error , beca

Re: I found one way to get global subs..what do you think?

2003-08-14 Thread Gerald Richter
> > I found one way to get global subs in embperl. > This is not the best way to do it but it works. The best solution is that > embperl handle this. Also the thing you do works, it seems a little bit complicated. Angus has send a list of possibilities you have for calling global subs in Embperl,

Re: Strange problem with Embperl 2.0b9 + httpd 2.0.40

2003-08-14 Thread Gerald Richter
Am Montag, 4. August 2003 13:10 schrieb Torsten Luettgert: > On Son, 2003-08-03 at 20:06, Gerald Richter via COM.BOX TEMA wrote: > > > For your escaping use the $req->Escape from Embperl (I don't know if it > > > is available in Embperl2 - Gerald?). > > > > Yes, it's available in Embperl 2, but you

Re: Embperl Book (was: Embperl Wishes and comments)

2003-08-14 Thread Gerald Richter
> > I had started with a book about Embperl in german, but this project is > > on halt at the moment for two reason: 1.) my limited time, 2.) Embperl > > is to special that many people will buy such a book and the O'Reilly > > don't excepted to sell much books at the moment, because they sell >

RE: Problem with RE

2003-08-14 Thread Harald Becker
[- $tmp =~ /(.*)/ -] Or [- $tmp =~ /(\*)/ -] Or [- $tmp =~ /\(*\)/ -] Depending on what you want to do :) Harald > -Original Message- > From: Radovan Petrík [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 06, 2003 9:34 AM > To: Embperl > Subject: Problem with RE > > > Hi ,

Trapping errors from embperl subroutines

2003-08-14 Thread Kee Hinckley
Running 1.x. I want to load a perl module (Execute('*') with import set to 0) and then later in the routine call $this->process(). In normal perl code I would do this: try { $this->process($udat{account_id}); } otherwise { my $err = shift; $this->Error(0); ... }; But that doesn'

Can't locate Apache/SessionX.pm *and* Apache::SessionX is installed

2003-08-14 Thread Bengt Rasmusson
Hello, When I restart Apache, to enable sesseion management, I get this kind of error meassage in the embperl.log: [108]ERR: 66: Embperl Session handling DISABLED because of the following error: Can't locate Apache/SessionX.pm in @INC (@INC contains: /usr/lib/perl5/i386-linux /usr/lib/perl5 /us