As I understand it...

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

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

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



I setup my subroutines like this:-

====http.conf

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

===Testing.pm

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

}


--- Martijn <[EMAIL PROTECTED]> 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. http://uk.docs.yahoo.com/trueswitch2.html

Reply via email to