Re: do as temp solution for require problem ?

2003-01-28 Thread [EMAIL PROTECTED]
Hi, I am using: mod_perl/1.26 Now I tried to include subroutines from an external .pl file with require. This I got from: http://perl.apache.org/docs/1.0/guide/porting.html#The_First_Mystery For example if we move the code from the script into the subroutine run, place the subroutines

Re: do as temp solution for require problem ?

2003-01-28 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: This is working fine although a mysql database connection in a subroutine in an external file doesn't always work. Please explain. It shouldn't ne a problem to run code that makes a database connection in a separate module. - Perrin

Re: do as temp solution for require problem ?

2003-01-28 Thread Randal L. Schwartz
mail@adventureforum == mail@adventureforum net [EMAIL PROTECTED] writes: mail@adventureforum I am using: mod_perl/1.26 mail@adventureforum Now I tried to include subroutines from an external .pl file with mail@adventureforum require. This smells a bit like you're using Apache::Registry (you

Re: do as temp solution for require problem ?

2003-01-28 Thread [EMAIL PROTECTED]
Hi, Yes, I am using Apache::Registry; how did you know that? ;-) In fact I am trying to change the CGI-Perl pages of http://www.deweertsport.be to mod_perl. As I was used to work with include files in PHP, I sort continued this way of making pages in Perl-CGI. If you look at the previous

Re: do as temp solution for require problem ?

2003-01-28 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: If you look at the previous mentioned site, you can see there is only one file, but it contains a lot of includes. - a random function for the banners on top - a file for the navigation on the left which includes a file for the date and a file for the counter (mysql

RE: do as temp solution for require problem ?

2003-01-28 Thread Justin Luster
:[EMAIL PROTECTED]] Sent: Tuesday, January 28, 2003 11:51 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: do as temp solution for require problem ? Hi, Yes, I am using Apache::Registry; how did you know that? ;-) In fact I am trying to change the CGI

Re: do as temp solution for require problem ?

2003-01-28 Thread Randal L. Schwartz
Justin == Justin Luster [EMAIL PROTECTED] writes: Justin When a Perl script runs under Mod_Perl the current working directory is Justin no longer the location of the Perl script (I think it is where Justin Apache.exe is). So when you require an additional file it does not look Justin in the

Re: do as temp solution for require problem ?

2003-01-28 Thread Stas Bekman
Justin Luster wrote: When a Perl script runs under Mod_Perl the current working directory is no longer the location of the Perl script (I think it is where Apache.exe is). You are talking about 2.0 here. And it should change to normal by the time its released. This issue is irrelevant to the

do as temp solution for require problem ?

2003-01-25 Thread [EMAIL PROTECTED]
Hi, I think mod_perl is wonderful but unfortunately enough the require function does not work as it does in CGI. Is using the function do the only workaround as temporary solution till this problem is fixed in a/the next mod_perl version? Cheers, Bart

Re: do as temp solution for require problem ?

2003-01-25 Thread Stas Bekman
[EMAIL PROTECTED] wrote: Hi, I think mod_perl is wonderful but unfortunately enough the require function does not work as it does in CGI. Is using the function do the only workaround as temporary solution till this problem is fixed in a/the next mod_perl version? Have you read: