[EMAIL PROTECTED] (Yasushi Nakajima) wrote:
>On Wed, 27 Oct 1999 23:24:58 -0500
>Ken Williams <[EMAIL PROTECTED]> wrote:
>
>Ken> I think a better solution would be to make PerlRun use real
object-oriented
>Ken> thinking (method handlers), something like this:
>Ken> 
>Ken>     sub handler ($$) {
>Ken>         my($class, $r) = @_;
>Ken>         my $pr = $class->new($r);
>Ken>         ...
>Ken>     }
>Ken> 
>
>I think that apache calls the handler() as static subroutine (i.e. non
>class or object method). So class name is not passed to the handler().
>The handler() in Apache::RegistryNG also includes package name.

That's only one way of calling a handler.  The other way is to use method
handlers, which lets you inherit methods from base classes.  See the
documentation in mod_perl_method_handlers.pod for more info.


  -------------------                            -------------------
  Ken Williams                             Last Bastion of Euclidity
  [EMAIL PROTECTED]                            The Math Forum

Reply via email to