table of contents
other versions
- Tumbleweed 0.40-1.34
- Leap-15.6
| Mo::required(3) | User Contributed Perl Documentation | Mo::required(3) |
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.
| 2016-07-08 | perl v5.42.0 |