At 17:42 06.10.2002, allan wrote: > 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 ?
Hi Allan, This is because when you issue use Apache::Constants ':common'; the constants are loaded into the namespace calling this use statement. However, when you get to your handler, you're in a different namespace from your startup.pl file; consequently, the bareword 'OK' isn't defined. In mod_perl 2, the constants are loaded into the Apache:: namespace instead, so your trick would work. But does it really cost you that much to have that small line at the top of your handler code? There are worse things :) -- Per Einar Ellefsen [EMAIL PROTECTED]