Apache -- A ghost mod_perl 2.0 class
There is no Apache class per se.
There are several modules that require the Apache class as the first argument to the class methods that they define.
To use these functions and methods you need to load the module that defines them. If you aren't sure which module contains the symbol you are after, use the helper module ModPerl::MethodLookup.
ModPerl::MethodLookup
And here are the methods:
server
Apache::ServerUtil defines a class method Apache->server:
Apache::ServerUtil
Apache->server
use Apache::ServerUtil (); my $s = Apache->server;
request
Apache::RequestUtil defines a class method Apache->request:
Apache::RequestUtil
Apache->request
use Apache::RequestUtil (); my $r = Apache->request;
mod_perl 2.0 documentation.
mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0.
The mod_perl development team and numerous contributors.
To install mod_perl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm mod_perl
CPAN shell
perl -MCPAN -e shell install mod_perl
For more information on module installation, please visit the detailed CPAN module installation guide.