Re: require and embperl

2001-12-20 Thread Gerald Richter
BTW. There is a FAQ about use/require etc. which is worth reading, see http://perl.apache.org/embperl/Faq.pod.2.html#When_I_use_a_module_inside_a_E mb Gerald - Gerald Richterecos electronic communication services gmbh Internetconnec

Re: Can't use an undefined value as filehandle reference at /wwww/htdocs/init.epl line 8

2001-12-20 Thread Gerald Richter
> > [416]ERR: 24: Error in Perl code: Can't locate loadable object for module > > Apache::File in @INC (@INC contains: Perl is looking for some C code, which correspond to Apache::File and is not finding it. Normaly this C code would be in File.so, but in this case it is part of mod_perl, but is

RE: require and embperl

2001-12-20 Thread Steve Fawcett
Hi Try using do instead of require: [- do "test.pl"; -] Regards Steve -Original Message- From: Jaak [mailto:[EMAIL PROTECTED]] Sent: 19 December 2001 18:44 To: Embperl Subject: require and embperl Hi! When I use [- require "test.pl"; -] test.pl => $lang{'test'} = "testing..."; 1;

Re: Can't use an undefined value as filehandle reference at /wwww/htdocs/init.epl line 8

2001-12-20 Thread Scott Chapman
Hmm. I don't know what's up here. I am no longer getting that error but this one now. I restarted Apache and closed all web browsers. Then hit the same page. I got the previous error. I hit refresh a couple times and now I get this new one instead?! Tried the same thing in Lynx on the lap

Re: Can't use an undefined value as filehandle reference at /wwww/htdocs/init.epl line 8

2001-12-20 Thread Scott Chapman
Gerald, I tried using Apache::File and get this: use Apache::File; # Line 6 in source code of init.epl [416]ERR: 24: Error in Perl code: Can't locate loadable object for module Apache::File in @INC (@INC contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/per

Re: Can't use an undefined value as filehandle reference at /wwww/htdocs/init.epl line 8

2001-12-20 Thread Gerald Richter
> > open ($req->{DBUGF}, '>>/tmp/debug.txt') || die ("Can't open debug > file for writing: $!"); > I am not sure if this syntax works at all. I would use Apache::File instead (or IO::File if you don't run udner mod_perl): $req->{DBUGF} = Apache::File -> new ('>>/tmp/debug.txt') || die ("Can't op

Re: public and private code branch

2001-12-20 Thread Gerald Richter
> Does anyone have an example how to set up httpd.conf > so that there is a separation between public and private code: > > .../epl/ public/ index.html > private/ > my private .epl code > > The DocumentRoot will be .../epl/public/ > Yet in index.html I can Execute stu

Re: 2.0b5 error: Nested tags handled incorrectly?

2001-12-20 Thread Gerald Richter
> > This page works fine in 1.3.4, but fails with 2.0b5: > > [2422]ERR: 49: index.html(32): Endtag '/ul' doesn't match starttag 'dl' > > The line in question is the first , which is out of sequence in the > source code but will be placed in sequence in the output. The code does > compile ok when I

Re: FW: embperl [* *] does not work

2001-12-20 Thread Gerald Richter
> I am still trying to [! require "psp-lib2.pl" !] > It failed with the following error. Even worse, > I remove the line and click the refresh, the error does not go away. > I will have to bounce Apache. Is this expected behavior? > If it is, it seems too easy to crash the server! > > [407]ERR: 24

Re: Can't use an undefined value as filehandle reference at /wwww/htdocs/init.epl line 8

2001-12-20 Thread ___cliff rayman___
Scott Chapman wrote: > Cliff, > I have optrawinput turned on (do my editing in ascii editors). I tried escaping > them anyway (one and then both of them) just for grins and it didn't have any > affect. > > On 20 Dec 2001 at 10:39, ___cliff rayman___ wrote: > > > Scott Chapman wrote: > > > > > [41

Re: Can't use an undefined value as filehandle reference at /wwww/htdocs/init.epl line 8

2001-12-20 Thread Scott Chapman
Cliff, I have optrawinput turned on (do my editing in ascii editors). I tried escaping them anyway (one and then both of them) just for grins and it didn't have any affect. On 20 Dec 2001 at 10:39, ___cliff rayman___ wrote: > Scott Chapman wrote: > > > [415]ERR: 24: Error in Perl code: Can't

Re: Can't use an undefined value as filehandle reference at /wwww/htdocs/init.epl line 8

2001-12-20 Thread ___cliff rayman___
Scott Chapman wrote: > [415]ERR: 24: Error in Perl code: Can't use an undefined value as filehandle > reference at //htdocs/init.epl line 8. > > The code looks like this in my init.epl: > > open ($req->{DBUGF}, '>>/tmp/debug.txt') || die ("Can't open debug > file for writing: $!"); t

Can't use an undefined value as filehandle reference at /wwww/htdocs/init.epl line 8

2001-12-20 Thread Scott Chapman
I'm getting: [415]ERR: 24: Error in Perl code: Can't use an undefined value as filehandle reference at //htdocs/init.epl line 8. The code looks like this in my init.epl: open ($req->{DBUGF}, '>>/tmp/debug.txt') || die ("Can't open debug file for writing: $!"); I'm just trying to