|
NAMEModPerl::VersionUtil - Makes it easier to investigate your mod_perl version. SYNOPSIS use ModPerl::VersionUtil;
if (ModPerl::VersionUtil->is_mp) {
print "It's running under mod_perl.";
print "mod_perl version: " . ModPerl::VersionUtil->mp_version_string;
}
if (ModPerl::VersionUtil->is_mp2) {
require Apache2 ();
require Apache2::RequestRec();
require Apache2::RequestIO ();
} elsif (ModPerl::VersionUtil->is_mp19) {
require Apache2;
require Apache::RequestRec();
require Apache::RequestIO ();
} elsif (ModPerl::VersionUtil->is_mp1) {
require Apache;
}
DESCRIPTIONThis module helps you to investigate your mod_perl version easily. METHODS
ACKNOWLEDGEMENTSCraig Manley <CMANLEY@cpan.org> gave me a code to handle an external scripts correctly. AUTHORNaoya Ito, <naoya@bloghackers.net> Some codes are borrowed from the Catalyst web application framework which can handle any versions of mod_perl elegantly. COPYRIGHT AND LICENSEThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. POD ERRORSHey! The above document had some coding errors, which are explained below:
|