1Mo::required(3) User Contributed Perl Documentation Mo::required(3)
23
4
Name
6Mo::required - Adds the required feature to Mo's has
7
Synopsis
9use Mo qw'required';
10has name => ( required => 1 );
11
Description
13Adds the required parameter to has. When required is set to a positive
14value, the constructor will die if the attribute is not set.
1516
17
18
perl v5.28.1 2016-07-06 Mo::required(3)