[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fixing a mod_perl module


> 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..);

It's working.  Thank you very much.

- Grant


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


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.