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.30.0 2019-07-26 Mo::required(3)