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

mod_perl - Const import different under unix/win32 with perl/active perl


Hi.

I did write a mod_perl module with the following statement:

use Apache2::Const -compile => qw(:log :http :config :cmd_how :override);

Under linux with perl 5.8.x i can use

return Apache2::Const::OK;

without any errors - mod_perl does not complain about it.

If i got the same under windows with active perl 5.8.8b820 i got an startup error that "barword ... not allowed with use strict ...".

If i change the line and add the const vars like this:

use Apache2::Const -compile => qw(:log :http :config :cmd_how :override
	OK DECLINED FORBIDDEN HTTP_SERVICE_UNAVAILABLE);

it does work.

Can anyone tell me why there is a difference - i thought :http for example should import the OK - any things i've missed?

Torsten


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