$ENV{MOD_PERL} =~/^mod_perl/ or die "not running under mod_perl!"; use lib qw(/srv/www/perl-lib); # enable if the mod_perl 1.0 compatibility is needed use Apache2::compat (); use ModPerl::Util (); #for CORE::GLOBAL::exit use Apache2::RequestRec (); use Apache2::RequestIO (); use Apache2::RequestUtil (); use Apache2::ServerRec (); use Apache2::ServerUtil (); use Apache2::Connection (); use Apache2::Log (); use APR::Table (); use ModPerl::Registry (); use Apache2::Const -compile => ':common'; use APR::Const -compile => ':common'; use Apache::DBI(); use DBI(); # Load CGI.pm and call its compile() method to precompile # (but not to import) its autoloaded methods. use CGI (); CGI->compile(':all'); 1;