Robert Landrum wrote: > I suspect that this may be because you're not actually running in > mod_perl. Aside from that, I don't see any methods actually defined in > Apache2::Module::loaded... not even a bootstrap. So it might need to > be loaded from something like Apache2. mod_dbd is not yet wrapped in XS/perl glue. Its something I'd like to make a top goal of 2.0.5 :)
if (MP2) { if (Apache2::Module::loaded('Apache2::Status')) { Apache2::Status->menu_item( 'DBI' => 'DBI connections', \&status_function ); } } else { if ($INC{'Apache.pm'} # is Apache.pm loaded? and Apache->can('module') # really? and Apache->module('Apache::Status')) { # Apache::Status too? Apache::Status->menu_item( 'DBI' => 'DBI connections', \&status_function ); } } If you want to check if a mod_ is loaded you should probably check out Apache::Test::need_module('mod_dbd.c') You can find some good examples of this in http://svn.apache.org/repos/asf/perl/Apache-SizeLimit/trunk/t/apache2/all.t Its also perldoc'd in Apache::Test HTH ------------------------------------------------------------------------ Philip M. Gollucci ([EMAIL PROTECTED]) 323.219.4708 Consultant - P6M7G8 Consutling - http://p6m7g8.net/Resume/resume.shtml Senior Software Engineer - Ticketmaster - http://ticketmaster.com 1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF We're halfway there Livin' on a prayer Take my hand and we'll make it-I swear Livin' on a prayer