Garnier, Jeremie wrote:
use Apache2::Module ();# test if an Apache module is loaded if (Apache2::Module::loaded('mod_dbd.c')) { … } But it dones: Undefined subroutine &Apache2::Module::loaded call at…
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.
Rob