sub MODIFY_CODE_ATTRIBUTES {
my ($class,$code,@attrs) = @_;
- unless ($class->can('__attr_cache')) {
- $class->mk_classdata('__attr_cache');
- $class->__attr_cache({});
- }
+ $class->mk_classdata('__attr_cache' => {}) unless $class->can('__attr_cache');
$class->__attr_cache->{$code} = [@attrs];
return ();
}