Hi,

I have a problem with mod_perl and base.pm, maybe it's a bug,
but i'm not sure yet.

Test machine is: Debian unstable with Apache 1.3.29, mod_perl 1.29
                            and Perl 5.8.3

This is the failure message from error.log:
[Wed Feb 11 19:22:56 2004] [error] Undefined subroutine &MyHandler::SubClass::handler called.



These are my two modules: -------------------------------8<-------------------------------------- # MyHandler.pm package MyHandler;

use strict;
use Apache::Constants ':common';

sub handler {
   my $r = shift;
   $r->send_http_header('text/plain');
   print "Hello apache\n";
   return OK;
}

1;
-------------------------------8<--------------------------------------
# MyHandler/SubClass.pm
package MyHandler::SubClass;

use strict;
use base 'MyHandler';

1;
-------------------------------8<--------------------------------------

These are my httpd.conf entries:
-------------------------------8<--------------------------------------
<Location /works>
   SetHandler perl-script
   PerlHandler MyHandler
</Location>

<Location /doesnotwork>
   SetHandler perl-script
   PerlHandler MyHandler::SubClass
</Location>
-------------------------------8<--------------------------------------

Cheers,
Sebastian Riedel

--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to