[MP2][QUESTION]Attribute::Handlers usage with mod_perl

[MP2][QUESTION]Attribute::Handlers usage with mod_perl

am 20.02.2008 10:43:09 von titetluc

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

PS: I already send this post on this mailing list but it seems that
the post was not received. Is this mailing list