I made an attempt to use Attribute::Handlers under mod perl today, and it appears that this cant be done. What I was hoping to do was use Attribute::Deprecated, and Attribute::Profiled in my perl handlers. That way I could say something like:
package MyHandler; sub whatever : Profiled { ... } ... And I would get profile information written directly to the log file. Since all of my handlers inherit from a common base class, I was thinking to eventually create my own handler code that could be turned on or off by chaning a configuration value eventually. However, when running under mod_perl, the attribute handlers never get set up. I think this is due to the fact that Attribute::Handlers uses CHECK and INIT blocks to setup the handlers, and CHECK blocks dont get executed under mod_perl. Has anyone else tried to use Attribute::Handlers under mod_perl? Any success stories? Mike