BigJoe has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to overload a function in a module. I was reading the documentation about Apache::AuthenNTLM to tweak it to what I need and I want to overload the handler function like he describes but it doesn't work. The line This override rules never gets written. Does any one know where I can find information on debugging method overiding?
--BigJoe
Learn patience, you must.
Young PerlMonk, craves Not these things.
Use the source Luke.
package MyOverride; use strict; use Apache::AuthenNTLM; use Apache::Constants qw(OK FORBIDDEN REDIRECT); @MyOverride::ISA = qw(Apache::AuthenNTLM) sub handler ($$) { my ($self, $r) = @_; print STDERR "\n\n\n\n\n\n\nThis override Rules\n\n\n\n\n\n\n\n"; return Apache::AuthenNTLM::handler ($self, $r) if(0); return OK; } 1;
--BigJoe
Learn patience, you must.
Young PerlMonk, craves Not these things.
Use the source Luke.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Overloading functions
by samtregar (Abbot) on Jun 18, 2002 at 18:36 UTC | |
Re: Overloading functions
by domm (Chaplain) on Jun 18, 2002 at 19:52 UTC | |
by BigJoe (Curate) on Jun 19, 2002 at 13:20 UTC | |
Re: Overloading functions
by BigJoe (Curate) on Jun 18, 2002 at 18:47 UTC | |
Re: Overloading functions Works
by BigJoe (Curate) on Jun 19, 2002 at 15:51 UTC |
Back to
Seekers of Perl Wisdom