perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hedges <hed...@scriptdolphin.org>
Subject RE: Authorization module is not working
Date Thu, 08 Jan 2009 19:55:41 GMT


On Thu, 8 Jan 2009, Odysseas Pentakalos, Ph.D. wrote:
> Thanks so much for your help. That was not the problem but
> it helped me see the problem. I was not importing the
> Constants at the top so regardless of whether I was
> returning FORBIDDEN or DECLINED, or HTTP_UNAUTHORIZED the
> value was invalid. I spent hours tracking down this
> oversight.

I hate things like that!  :-)

Just curious, what would have happened if you'd uncommented
'use strict'?

Programming like this is good for you:

 use strict;
 use warnings FATAL => 'all';
 use English '-no_match_vars';

Mark

Mime
View raw message