1Mo::coerce(3)         User Contributed Perl Documentation        Mo::coerce(3)
2
3
4

Name

6       Mo::coerce - Adds the coerce feature to Mo's has
7

Synopsis

9           use Mo qw'coerce';
10           has name => ( coerce => sub { uc $_[0] } );
11

Description

13       Adds the coerce parameter to has, which expects a code reference, which
14       is used to transform the value to be set.
15
16
17
18perl v5.32.0                      2020-07-28                     Mo::coerce(3)
Impressum