http://www.perlmonks.org?node_id=175445

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?
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.