has 'x' => (is => 'rw', isa => 'Int'); has 'x' => {is => 'rw', isa => 'Int'};