From: Xavier Subject: push_handler with Apache::ModuleConfig Date: 18:18 on 16 Nov 2004
Hello,
for best look, I'd like to replace :
PerlInitHandler My::Module
with
MyModule On
I've done the XS file using Apache::ExtUtils, but I don't know how to
write the "MyModule" sub. Is there any entry in the $cfg object to do it?
sub MyModule {
my($cfg,$parms,$arg)=@_;
$cfg->{__WHAT__} = \&myhandler if($arg);
}
With Google, I've found scripts using "$cfg->{handler}", but they're
calling a standard handler, not a Perl one; I've neither found any doc
about the "per-directory/server" $cfg class.
Thanks.
Xavier
---
French translation of Postfix documentation :
http://x.guimard.free.fr/postfix/
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
push_handler with Apache::ModuleConfig
Xavier 18:18 on 16 Nov 2004