perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject cvs commit: modperl mod_perl_method_handlers.pod
Date Tue, 22 Jan 2002 16:29:33 GMT
stas        02/01/22 08:29:33

  Modified:    .        mod_perl_method_handlers.pod
  Log:
  - document subroutine attributes for method handlers
  Submitted by:	Geoffrey Young <geoff@modperlcookbook.org>
  Reviewed by:	stas
  
  Revision  Changes    Path
  1.10      +16 -1     modperl/mod_perl_method_handlers.pod
  
  Index: mod_perl_method_handlers.pod
  ===================================================================
  RCS file: /home/cvs/modperl/mod_perl_method_handlers.pod,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- mod_perl_method_handlers.pod	2 Jan 2002 09:41:23 -0000	1.9
  +++ mod_perl_method_handlers.pod	22 Jan 2002 16:29:33 -0000	1.10
  @@ -53,7 +53,22 @@
   
   In this case, the 'My' class inherits this method from 'BaseClass'.
   
  -To build in this feature, configure with:
  +In Perl 5.6.0 or later, you can use subroutine attributes in place
  +of subroutine prototypes:
  +
  + package My;
  + @ISA = qw(BaseClass);
  +
  + sub handler : method {
  +     my($class, $r) = @_;
  +     ...;
  + }
  +
  +see the L<attributes> manpage for additional information on 
  +subroutine attributes.
  +
  +To build in the ability to specify Perl*Handlers as method handlers,
  +configure mod_perl with:
   
    % perl Makefile.PL PERL_METHOD_HANDLERS=1 [PERL_FOO_HOOK=1,etc]
   
  
  
  

Mime
View raw message