There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

Name

Mo::required - Adds the required feature to Mo's has

Synopsis

use Mo qw'required';
has name => ( required => 1 );

Description

Adds the required parameter to has. When required is set to a positive value, the constructor will die if the attribute is not set.