Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Overloading functions

by domm (Chaplain)
on Jun 18, 2002 at 19:52 UTC ( #175481=note: print w/replies, xml ) Need Help??

in reply to Overloading functions

I know nothing about Apache::AuthenNTLM, but I assume you did the obvious things, like restarting Apache etc?

One reason might be that you have written your handler as a method handler (sub handler ($$)), but are calling it like a normal handler.

Try this in your httpd.conf

PerlAuthenHandler MyOverride->handler

Or change your handler to a "normal" handler, like so:

sub handler { my $r = shift; ...

What about not printing to STDERR, but to use $r->log->error('bla')

You could post you message to the mod_perl mailing list, but please read this before you do. There are a lot of very clever minds there...

-- #!/usr/bin/perl for(ref bless[],just'another'perl'hacker){s-:+-$"-g&&print$_.$/}

Replies are listed 'Best First'.
Re: Re: Overloading functions
by BigJoe (Curate) on Jun 19, 2002 at 13:20 UTC
    I gave your two suggestions a try. The first one gives me an error that possibly MyOverride has not been loaded. The second runs but nothing is populated in the error log. I will change my print STDERR to $r->log->error but I don't think that will fix it because when I wrote some mod_perl that wasn't doing this but still generating errors I used STDERR.

    Thanks for your suggestions. I will send out an email to the mod_perl mailing list too.


    Learn patience, you must.
    Young PerlMonk, craves Not these things.
    Use the source Luke.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://175481]
Discipulus glisses

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2018-03-23 11:43 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (290 votes). Check out past polls.