At 22:00 25.04.2002, Perrin Harkins wrote: >Oops, that's right, it's in the Apache::Constants package. Changing your >code to say Apache::Constants::OK should do it. No need to import all of >that stuff unless you want to.
This is mod_perl 2, so Apache::Constants has been replaced by Apache::Const (AFAIK). >Jon Robison wrote: >>maybe a "use Apache::Constants qw/ :common /;" ???? >>--Jon Robison >>"Lihn, Steve" wrote: >> >>>Hi, >>>I am testing the Apache::Echo connection handler for Apache2 and mod_perl 2. >>>But encounter the following error: >>> >>>[Thu Apr 25 15:32:15 2002] [error] failed to resolve handler `Apache::Echo' >>>[Thu Apr 25 15:32:15 2002] [error] Bareword "Apache::OK" not allowed while >>>"strict subs" in use at C:\Apache2/blib/lib/Apache2/Apache/Echo.pm line 25. >>>Compilation failed in require at (eval 2) line 3. >>> >>>What do I miss? >> >>-- >>Per Einar Ellefsen >>[EMAIL PROTECTED]