Clinton Gormley wrote:
I'm struggling to get anything much working with mod_perl 2.

I have installed mod_perl 1.99_07 with Apache 2.0.43. I have read all of
the documentation on perl.apache.org.

I can get a basic page returned to me with a modperl handler, but as
soon as I try to do anything of note (eg Apache->push_handlers() (or
should that be Apache2->push_handlers()? - neither works), get query
string parameters, etc) I run into a brick wall.

I've only started to dabble with mod_perl 2, but I didn't find it too difficult. the real drawback was that whereas mod_perl 1.0 use()d most of the classes for you behind the scenes (like Apache::Table), with mod_perl 2.0 you need to use() them yourself, which means you have to figure out which classes provide which methods.

my only work to date can be found here:

http://www.modperlcookbook.org/~geoff/modules/experimental/Apache-Clean-2.00b.tar.gz

Apache::Clean is a PerlOutputFilterHandler, but the tests include two simple PerlResponseHandlers, and it's pretty well commented, so it should serve as a starting point for which classes you're likely to need. I found all the classes I needed by grep'ing the t/ directory in the mod_perl distribution for the methods in question, adding them one by one, then, when it worked, checking the source for the module in question to learn what was going on...

--Geoff



Reply via email to