Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Overloading functions

by domm (Chaplain)
on Jun 18, 2002 at 19:52 UTC ( [id://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.

    --BigJoe

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://175481]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 12:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found