ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



apache_mod_perl-101~38::mod_perl-2.0.101~8::mod_perl.0.2::docs::api::ModPerl::PerlRun(3)



NAME
       ModPerl::PerlRun - Run unaltered CGI scripts under mod_perl

Synopsis
         # 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>

Description
       META: document that for now we don't chdir() into the script's dir, because it affects the whole
       process under threads. "ModPerl::PerlRunPrefork" should be used by those who run only under prefork
       MPM.

Special Blocks
       "BEGIN" Blocks

       When running under the "ModPerl::PerlRun" handler "BEGIN" blocks behave as follows:

          "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" and "INIT" Blocks

       Same as normal mod_perl handlers.

       "END" Blocks

       Same as "ModPerl::Registry".

Authors
       Doug MacEachern

       Stas Bekman

See Also
       "ModPerl::RegistryCooker" and "ModPerl::Registry".



perl v5.8.8                           apache_mod_-108::mod_perl-2.0.2::docs::api::ModPerl::PerlRun(3)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.