perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Moss <>
Subject Re: PerlAuthenHandler
Date Thu, 01 Mar 2007 13:18:53 GMT
As I understand it...

if you use this ->autologin   the first argument to
your autologin subroutine will be a string

if you use ::autologin  It won't be...

Perhaps this might have something to do with it...

I setup my subroutines like this:-


PerlModule MyRoot::Testing
PerlAuthenHandler MyRoot::Testing->autologin

sub autologin : method
    my $class =shift;
    my $r = shift;


--- Martijn <> wrote:

> As someone here pointed out in an off-list email
> (thanks!), I had
> forgotten to load the perl module, by writing
>   PerlModule MyRoot::Testing
> in httpd.conf. That wasn't very clever...
> But then it still didn't work, until for some reason
> I changed
>   PerlAuthenHandler MyRoot::Testing->autologin
> to
>   PerlAuthenHandler MyRoot::Testing::autologin
> It's doing my head in, as in the line above this
> one, a -> is used
> without any problems. It's all not very important,
> but I'd like to
> write code of which I understand why it works,
> rather than code that
> just happens to work.
> Martijn.

Copy addresses and emails from any email account to Yahoo! Mail - quick, easy and free.

View raw message