perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject Re: back compatibility layer for method handlers?
Date Tue, 22 Jan 2002 13:39:47 GMT
here's a (very) brief explanation:

Index: mod_perl_method_handlers.pod
===================================================================
RCS file: /home/cvspublic/modperl/mod_perl_method_handlers.pod,v
retrieving revision 1.9
diff -u -r1.9 mod_perl_method_handlers.pod
--- mod_perl_method_handlers.pod        2 Jan 2002 09:41:23 -0000       1.9
+++ mod_perl_method_handlers.pod        22 Jan 2002 13:38:58 -0000
@@ -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]

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message