On Sat, 21 Jan 2006 20:32:35 -0800 Stas Bekman <[EMAIL PROTECTED]> wrote:
> Sure in: > http://search.cpan.org/src/FWILES/Apache-DB-0.10/lib/Apache/DProf.pm > > it goes: > > use constant MP2 => eval { require mod_perl; $mod_perl::VERSION > > 1.99 }; > > so MP2 can never be true, since it should be mod_perl2 not mod_perl. > Since I don't have mp1 installed (which I guess happens to work > instead) the module doesn't work. > > FWIW, Apache::DB has 'require mod_perl2'; > http://search.cpan.org/src/FWILES/Apache-DB-0.10/DB.pm Ok now I'm *REALLY* confused. :) I just wrote up a small handler on my system, just to test the use constant above, and indeed it fails, however... Apache::DProf and Apache::SmallProf *work* just fine my system. I'd like to get this wrapped up asap, as I've got an article coming out on perl.com in the next few weeks showing how to use these modules and specifically with mp2. I'm completely confused because if the MP2 test isn't working then it shouldn't be loading in the proper libraries i.e. Apache2::RequestRec and Apache2::ServerUtil, which is the whole "point" of the port! ;) At first I thought maybe I'd screwed myself up again by having something preloaded, but this is all I have in my startup.pl other than a use lib: use APR::Pool; use Apache::DB; Apache::DB->init; 1; Anyone got any ideas on what I should use instead of the constant above? --------------------------------- Frank Wiles <[EMAIL PROTECTED]> http://www.wiles.org --------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
