perl-docs-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r159850 - in perl/modperl/docs/trunk/src/docs/2.0/user/intro: overview.pod start_fast.pod
Date Sat, 02 Apr 2005 23:39:59 GMT
Author: randyk
Date: Sat Apr  2 15:39:58 2005
New Revision: 159850



Modified: perl/modperl/docs/trunk/src/docs/2.0/user/intro/overview.pod
--- perl/modperl/docs/trunk/src/docs/2.0/user/intro/overview.pod (original)
+++ perl/modperl/docs/trunk/src/docs/2.0/user/intro/overview.pod Sat Apr  2 15:39:58 2005
@@ -108,7 +108,7 @@
 Filtering of Perl modules output has been possible for years since
 tied filehandle support was added to Perl.  There are several modules,
-such as C<Apache::Filter> and C<Apache::OutputChain> which have been
+such as C<Apache2::Filter> and C<Apache::OutputChain> which have been
 written to provide mechanisms for filtering the C<STDOUT> stream.
 There are several of these modules because no one's approach has quite
 been able to offer the ease of use one would expect, which is due
@@ -218,14 +218,14 @@
 the C<Perl*Handler> configuration directives.  By simply adding this
-  PerlModule Apache::Foo
+  PerlModule Apache2::Foo
-C<Apache::Foo> can register hooks itself at server startup:
+C<Apache2::Foo> can register hooks itself at server startup:
-  Apache::Hook->add(PerlAuthenHandler => \&authenticate,
-                    Apache::Hook::MIDDLE);
-  Apache::Hook->add(PerlLogHandler    => \&logger,
-                    Apache::Hook::LAST);
+  Apache2::Hook->add(PerlAuthenHandler => \&authenticate,
+                    Apache2::Hook::MIDDLE);
+  Apache2::Hook->add(PerlLogHandler    => \&logger,
+                    Apache2::Hook::LAST);
 META: Not implemented yet (API will change?)
@@ -269,11 +269,11 @@
 there are two approaches.  A module can "subclass" directive handlers,
 saving a copy of the data for itself, then returning B<DECLINE_CMD> so
 the other modules are also handed the info.  Or, the
-C<$Apache::PerlSections::Save> variable can be set to save
-E<lt>PerlE<gt> configuration in the C<%Apache::ReadConfig::>
+C<$Apache2::PerlSections::Save> variable can be set to save
+E<lt>PerlE<gt> configuration in the C<%Apache2::ReadConfig::>
 namespace.  Both methods are rather kludgy, version 2.0 provides a
 L<Perl interface to the Apache configuration
@@ -589,12 +589,12 @@
 module|docs::2.0::user::porting::compat> can be used.
 In mod_perl 2.0 the APR API resides in the C<APR::> namespace, and
-obviously the C<Apache::> namespace is mapped to the Apache API.
+obviously the C<Apache2::> namespace is mapped to the Apache API.
 And in the case of C<APR>, it is possible to use C<APR> modules
 outside of Apache, for example:
-  % perl  -MApache2 -MAPR -MAPR::UUID -le 'print APR::UUID->new->format'
+  % perl -MAPR -MAPR::UUID -le 'print APR::UUID->new->format'
 The mod_perl 2.0 generator is a custom suite of modules specifically
@@ -720,7 +720,7 @@
 =item *
-Inlined C<Apache::*.xs> calls
+Inlined C<Apache2::*.xs> calls
 =item *

Modified: perl/modperl/docs/trunk/src/docs/2.0/user/intro/start_fast.pod
--- perl/modperl/docs/trunk/src/docs/2.0/user/intro/start_fast.pod (original)
+++ perl/modperl/docs/trunk/src/docs/2.0/user/intro/start_fast.pod Sat Apr  2 15:39:58 2005
@@ -57,17 +57,13 @@
   LoadModule perl_module modules/
-Next, tell Perl where to find mod_perl2 libraries:
-  PerlModule Apache2
 There are many other configuration options which you can find in the
 L<configuration manual|docs::2.0::user::config::config>.
 If you want to run mod_perl 1.0 code on mod_perl 2.0 server enable the
 compatibility layer:
-  PerlModule Apache::compat
+  PerlModule Apache2::compat
 For more information see: L<Migrating from mod_perl 1.0 to mod_perl
@@ -140,17 +136,17 @@
 response handler similar to the registry script from the previous
-  #file:MyApache/
+  #file:MyApache2/
-  package MyApache::Rocks;
+  package MyApache2::Rocks;
   use strict;
   use warnings;
-  use Apache::RequestRec ();
-  use Apache::RequestIO ();
+  use Apache2::RequestRec ();
+  use Apache2::RequestIO ();
-  use Apache::Const -compile => qw(OK);
+  use Apache2::Const -compile => qw(OK);
   sub handler {
       my $r = shift;
@@ -158,13 +154,13 @@
       print "mod_perl 2.0 rocks!\n";
-      return Apache::OK;
+      return Apache2::OK;
-Save the code in the file I<MyApache/>, somewhere where
+Save the code in the file I<MyApache2/>, somewhere where
 mod_perl can find it. For example let's put it under
-I</home/httpd/httpd-2.0/perl/MyApache/>, and we tell mod_perl
+I</home/httpd/httpd-2.0/perl/MyApache2/>, and we tell mod_perl
 that I</home/httpd/httpd-2.0/perl/> is in C<@INC>, via a startup file
 which includes just:
@@ -179,7 +175,7 @@
   <Location /rocks>
       SetHandler perl-script
-      PerlResponseHandler  MyApache::Rocks
+      PerlResponseHandler  MyApache2::Rocks
 Now restart the server and issue a request to

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message