use Attribute::Handlers; sub TRACE :ATTR(CODE) { ... }