John Saylor wrote:
> hi
>
>> From: Michael Peters [mailto:suppressed
>> Does it work when you don't use C::A::P::Apache?
>
> no- same result.
Well, then it's not related to the plugin. So this becomes a mod_perl question
instead of a C::A one. You might try asking the question on that list.
>> How do you have it configured in your apache.conf?
>
> the package is pre-loaded in first in startup.pl,
Are you sure the file is loaded first by your startup.pl? Try putting
"PerlModule XX::YYYY" before your "PerlHandler" part.
> then the apache config
> is like this:
> <Location /YYY>
> SetHandler perl-script
> PerlHandler XX::YYY
> </Location>
Is this Apache 1 or 2?
> i also tried changing it so that the URL is not the same as the package
> name. no dice.
That shouldn't matter at all.
>> Have you tried using the "method" attribute?
>> sub handler : method {
>> ...
>> }
>
> yes- no change. i never heard about the ability to put 'attributes' on
> subroutines. where could i find out more about this?
If you have a recent "Programming Perl" (the camel book) they are covered in
Chapter 6: Subroutines, subsection "Subroutine Attributes". In this case, it
basically tells mod_perl how to call the method (passing in the class name first
and then the actual $r object second).
> i thought about doing something like this:
> <Location /YYY>
> SetHandler perl-script
> PerlHandler XX::YYY::handler
> </Location>
You only need to do something like "XX::YYY::handler" if the sub isn't named
"handler".
--
Michael Peters
Developer
Plus Three, LP
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.