Per Einar Ellefsen wrote: > At 22:04 25.04.2002, Per Einar Ellefsen wrote: > >> At 21:39 25.04.2002, 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? >> >> >> Try adding >> use Apache::Const qw/:common/; >> at the top >> >> and replace return Apache::OK with >> return OK; >> >> Seems like the docs say Apache::OK everywhere, but I don't know if >> this is supposed to work or not. > > > Or actually, looking at the files in t/, it's probably better to do: > use Apache::Const -compile => 'OK'; > > And leave the Apache::OK line as is.
I've adjusted all the tests in t/ a few weeks ago, e.g.: http://cvs.apache.org/viewcvs.cgi/modperl-2.0/t/protocol/TestProtocol/echo.pm?rev=1.2&content-type=text/vnd.viewcvs-markup while 1.99 beta was released your best bet is to always use cvs version of httpd and mod_perl before it's released for real. So you can benefit from all the fixes reported since the release and new developments. __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com