Practical mod_perl / HTML Book /



previous page: 24.5.5.1. modperl
  
page up: HTML Version of the book
  
next page: 24.5.5.3. A simple response handler example

24.5.5.2. perl-script


perl-script is configured as:

SetHandler perl-script

Most mod_perl handlers use the perl-script handler. Here are a few things to note:

  • PerlOptions +GlobalRequest is in effect unless:

    PerlOptions -GlobalRequest

    is specified.

  • PerlOptions +SetupEnv is in effect unless:

    PerlOptions -SetupEnv

    is specified.

  • STDOUT and STDOUT get tied to the request object $r, which makes it possible to read from STDIN and print directly to STDOUT via print( ), instead of having to use implicit calls like $r->print( ).

  • Several special global Perl variables are saved before the handler is called and restored afterward (as in mod_perl 1.0). These include %ENV, @INC, $/, and STDOUT's $| and END blocks.

 

Continue to:

  • prev: 24.5.5.1. modperl
  • Table of Contents
  • next: 24.5.5.3. A simple response handler example







TOP
previous page: 24.5.5.1. modperl
  
page up: HTML Version of the book
  
next page: 24.5.5.3. A simple response handler example


Menu

  • HTML Book
  • PDF Book
  • Download Code
  • Table of Contents
  • Errata
  • mod_perl2 User's Guide
  • Sitemap

Search


Add to Google




Creative Commons License


Written by
Eric Cholet (Logilune) and
Stas Bekman (StasoSphere & Free Books).


[ Privacy Policy | Terms of Use | About Us | Search ]

© 2007 StasoSphere.com