perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "titetluc titetluc" <titet...@gmail.com>
Subject [MP2][QUESTION]Apache::Handler usage with mod_perl
Date Fri, 15 Feb 2008 12:07:03 GMT
Hello all,

I would like to use attributes (Attribute::Handlers) in a mod_perl module.

I defined my attribute:

use Attribute::Handlers;
sub Catch_error  ATTR(CODE, BEGIN) { ... }

My module uses this attribute:

sub foo :Catch_error{
}

But this does not work.
I searched in the mod_perl mailing list and found interesting threads
("OO handlers" and "Attribute::Handlers - cant use under mod_perl?").

Attribute::Handlers would be incompatible with mod_perl (CHECK phase
is not handled by mod_perl). But according to Geoffrey Young and James
Smith, it should work (Apache::Handler module uses the
Attribute::Handlers module).
I had a look at the Apache::Handler but I can not see any declaration
differences with my module.

Could someone give some tips to make my attribute usable in mod_perl.

Thanks

Gaetan

Mime
View raw message