Re: Can't load perl file

2005-06-08 Thread Foo Ji-Haw
Yes. When it fails to compile, it returns exactly that 'Can't load...' message. Nick Pietraniec wrote: Turns out it was an error in the mod_perl.pl file I took "Can't load" to mean "Where's this file?" Where I should have taken it as "There's an error in this file" On Jun 8, 2005, at 3:0

Re: Can't load perl file

2005-06-08 Thread Foo Ji-Haw
What is in your mod_perl.pl file? If there is any error returned during compilation of the script, you will get the error you got . Try running mod_perl.pl from the command line, if it is possible. A possibility is that you forgot to 'use Apache2' in your script. Nick Pietraniec wrote: Hello

Re: Can't load perl file

2005-06-08 Thread Nick Pietraniec
Turns out it was an error in the mod_perl.pl file I took "Can't load" to mean "Where's this file?" Where I should have taken it as "There's an error in this file" On Jun 8, 2005, at 3:00 PM, Nick Pietraniec wrote: Not a bad idea, but I just gave it a shot and no luck. On Jun 8, 2005, at

Re: testing against both apache 1.x and 2.x

2005-06-08 Thread Stas Bekman
Dorian Taylor wrote: so i'm working on one of my modules that works in both mod_perl 1 and 2, (custom config directives, conditional makefile processing, the whole nine) and i realized i have to test against both apache 1 and 2, preferably in one sequence. now, there's APACHE_TEST_APXS, APACHE_TE

testing against both apache 1.x and 2.x

2005-06-08 Thread Dorian Taylor
so i'm working on one of my modules that works in both mod_perl 1 and 2, (custom config directives, conditional makefile processing, the whole nine) and i realized i have to test against both apache 1 and 2, preferably in one sequence. now, there's APACHE_TEST_APXS, APACHE_TEST_HTTPD and whatnot, b

Re: [ANNOUNCE] Apache2::TrapSubRequest 0.03

2005-06-08 Thread Dorian Taylor
> Hmm, have you considered removing the _filter sub and writing > it as a closure instead? Here's some code that I've been using > for that: i suppose i could do that. today is clean-my-modules-and-get-them-on-cpan day so perhaps later. ;) .d

Re: Can't load perl file

2005-06-08 Thread Nick Pietraniec
Not a bad idea, but I just gave it a shot and no luck. On Jun 8, 2005, at 2:56 PM, Tom Schindl wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nick Pietraniec schrieb: [...] | | | LoadFile "C:/Perl/bin/perl58.dll" ~ ^^^ | LoadModule perl_module modules/mod_perl.so | | Perl

Re: Can't load perl file

2005-06-08 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nick Pietraniec schrieb: [...] | | | LoadFile "C:/Perl/bin/perl58.dll" ~ ^^^ | LoadModule perl_module modules/mod_perl.so | | PerlRequire "c:/Apache2/conf/mod_perl.pl" ~ ^^^ | | --- Does the lower letter of c: matter.

Re: [ANNOUNCE] Apache2::TrapSubRequest 0.03

2005-06-08 Thread Joe Schaefer
Dorian Taylor <[EMAIL PROTECTED]> writes: > http://search.cpan.org/~dorian/ - now with working tests. > > 0.03 should show up soon (forgot to remove the bit about > ap_save_brigade in 0.02) Hmm, have you considered removing the _filter sub and writing it as a closure instead? Here's some code t

Can't load perl file

2005-06-08 Thread Nick Pietraniec
Hello everyone, Hoping someone out has experienced this before. I've poured through archives and faqs but haven't seen any info on it. I just tried everything below on a clean server because I thought I messed something up during an upgrade, but I'm getting this on more than one computer.

Re: Any way for a PerlHandler to know what Location block it's in?

2005-06-08 Thread John Siracusa
On 6/8/05, Dorian Taylor <[EMAIL PROTECTED]> wrote: > $r->location will also return whatever's in a LocationMatch, Directory > and DirectoryMatch directive, should the scope of the request lay > in one of those. if you're simply clipping the location off the > front of the request uri you could pot

[ANNOUNCE] Apache2::TrapSubRequest 0.03

2005-06-08 Thread Dorian Taylor
http://search.cpan.org/~dorian/ - now with working tests. 0.03 should show up soon (forgot to remove the bit about ap_save_brigade in 0.02)

Re: Any way for a PerlHandler to know what Location block it's in?

2005-06-08 Thread Dorian Taylor
On Wed, Jun 08, 2005 at 12:00:23PM -0400, John Siracusa wrote: > On 6/8/05, Geoffrey Young <[EMAIL PROTECTED]> wrote: > > $r->location() ? > > Duh, I'm an idiot. Thanks :) > > -John $r->location will also return whatever's in a LocationMatch, Directory and DirectoryMatch directive, should the s

Re: Any way for a PerlHandler to know what Location block it's in?

2005-06-08 Thread John Siracusa
On 6/8/05, Geoffrey Young <[EMAIL PROTECTED]> wrote: > $r->location() ? Duh, I'm an idiot. Thanks :) -John

Re: Any way for a PerlHandler to know what Location block it's in?

2005-06-08 Thread Michael Peters
John Siracusa wrote: > Confusing subject, simple question: > > > PerlSetVar MyRoot "/foo/bar" > SetHandler perl-script > PerlHandler MyModule > > > MyModule calls $r->dir_config('MyRoot') to get the "/foo/bar" path. > > I want to ditch the "PerlSetVar MyRoot" line because it will alwa

Any way for a PerlHandler to know what Location block it's in?

2005-06-08 Thread John Siracusa
Confusing subject, simple question: PerlSetVar MyRoot "/foo/bar" SetHandler perl-script PerlHandler MyModule MyModule calls $r->dir_config('MyRoot') to get the "/foo/bar" path. I want to ditch the "PerlSetVar MyRoot" line because it will always have the same value as the "Location" di