hi

this might be a faq, but couldn't find it in the manual.
is it not possible to preload the Apache constants ?


currently i do like this in my handler file:

Foo.pm
------
package Apache::Foo;

use strict;
use Apache::Reload;
use Apache::Constants ':common';
...
sub handler {
 my $r = shift;
 ...
 return OK if $r->header_only;
 ...
}



that works ok, but i would like to move the line

  use Apache::Constants ':common';

to my startup.pl file.

but if i do that switch, i will get this kind of error:

[error] Bareword "OK" not allowed while "strict subs" in use


why is that ?

./allan

Reply via email to