perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Gormley <cl...@traveljury.com>
Subject Re: Fixing a mod_perl module
Date Sat, 09 Dec 2006 22:50:06 GMT
> When I change:
> 
> return Apache2::Const::REDIRECT;
> 
> to:
> 
> return Apache2::Const::HTTP_MOVED_PERMANENTLY;
> 
> I get:
> 
> Bareword "Apache2::Const::HTTP_MOVED_PERMANENTLY" not allowed while
> "strict subs" in use

You need something like:
use Apache2::Const -compile => qw(OK DECLINED HTTP_MOVED_PERMANENTLY..);

> I'm using mod_perl-2.0.2 and apache-2.0.58.  Any ideas?
> 
> - Grant

________________________________________________________________________

Clinton Gormley clinton@traveljury.com

www.TravelJury.com - For travellers, By travellers




Mime
View raw message