[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Many handlers in the same module


On Wed, Mar 26, 2008 at 9:47 AM, Colin Wetherbee <suppressed> wrote:
>  > what about...
>  >
>  > PerlAccessHandler JetSet::Handler::AccessHandler
>  >
>  > sub AccessHandler {
>  >     my ($r) = @_;
>  > }
>
>  We seem to have solved the problem, but for the sake of conversation...
>
>  When I've tried that in the past, mod_perl would always look for
>  handler() within JetSet::Handler::AccessHandler.pm.

Right.  That is completely different configuration from
JetSet::Handler->AccessHandler.  Without the method call indicator,
you're just telling mod_perl which package to look for the handler()
sub in, and telling it to call handler() as a sub rather than a class
method.

- Perrin


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.