ModPerl::PerlRun - Run unaltered CGI scripts under mod_perl
# httpd.conf PerlModule ModPerl::PerlRun Alias /perl-run/ /home/httpd/perl/ <Location /perl-run> SetHandler perl-script PerlResponseHandler ModPerl::PerlRun PerlOptions +ParseHeaders Options +ExecCGI </Location>
BEGIN
When running under the ModPerl::PerlRun handler BEGIN blocks behave as follows:
ModPerl::PerlRun
BEGIN blocks defined in scripts running under the ModPerl::PerlRun handler are executed on each and every request.
BEGIN blocks defined in modules loaded from scripts running under ModPerl::PerlRun (and which weren't already loaded prior to the request) are executed on each and every request only if those modules declare no package. If a package is declared BEGIN blocks will be run only the first time each module is loaded, since those modules don't get reloaded on subsequent requests.
See also BEGIN blocks in mod_perl handlers.
CHECK
INIT
Same as normal mod_perl handlers.
END
Same as ModPerl::Registry.
ModPerl::Registry
Doug MacEachern
Stas Bekman
ModPerl::RegistryCooker and ModPerl::Registry.
ModPerl::RegistryCooker
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.