home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-perl-addon-1.4.9-installer.exe / RegistryBB.pm < prev    next >
Encoding:
Perl POD Document  |  2004-09-17  |  2.1 KB  |  78 lines

  1. # Copyright 2001-2004 The Apache Software Foundation
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. #     http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. #
  15. package ModPerl::RegistryBB;
  16.  
  17. use strict;
  18. use warnings FATAL => 'all';
  19.  
  20. # we try to develop so we reload ourselves without die'ing on the warning
  21. no warnings qw(redefine); # XXX, this should go away in production!
  22.  
  23. our $VERSION = '1.99';
  24.  
  25. use base qw(ModPerl::RegistryCooker);
  26.  
  27. sub handler : method {
  28.     my $class = (@_ >= 2) ? shift : __PACKAGE__;
  29.     my $r = shift;
  30.     return $class->new($r)->default_handler();
  31. }
  32.  
  33. # currently all the methods are inherited through the normal ISA
  34. # search may
  35.  
  36. 1;
  37. __END__
  38.  
  39.  
  40. =head1 NAME
  41.  
  42. ModPerl::RegistryBB - Run unaltered CGI scripts persistently under mod_perl
  43.  
  44. =head1 Synopsis
  45.  
  46.   # httpd.conf
  47.   PerlModule ModPerl::RegistryBB
  48.   Alias /perl/ /home/httpd/perl/
  49.   <Location /perl>
  50.       SetHandler perl-script
  51.       PerlResponseHandler ModPerl::RegistryBB
  52.       #PerlOptions +ParseHeaders
  53.       #PerlOptions -GlobalRequest
  54.       Options +ExecCGI
  55.   </Location>
  56.  
  57. =head1 Description
  58.  
  59. C<ModPerl::RegistryBB> is similar to C<L<ModPerl::Registry>>, but does
  60. the bare minimum (mnemonic: BB = Bare Bones) to compile a script file
  61. once and run it many times, in order to get the maximum
  62. performance. Whereas C<L<ModPerl::Registry>> does various checks,
  63. which add a slight overhead to response times.
  64.  
  65. =head1 Authors
  66.  
  67. Doug MacEachern
  68.  
  69. Stas Bekman
  70.  
  71. =head1 See Also
  72.  
  73. C<L<ModPerl::RegistryCooker|docs::2.0::api::ModPerl::RegistryCooker>>,
  74. C<L<ModPerl::Registry|docs::2.0::api::ModPerl::Registry>> and
  75. C<L<ModPerl::PerlRun|docs::2.0::api::ModPerl::PerlRun>>.
  76.  
  77. =cut
  78.