You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Torsten Krah <tk...@fachschaft.imn.htwk-leipzig.de> on 2007/10/12 10:18:07 UTC
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