package t::class; no nonsense 'class'; with 't::role'; has 'foo' => ( is => 'ro' );