# test if an Apache module is loaded if (Apache2::Module::loaded('mod_perl.c')) { warn "mod_perl!"; }