table of contents
        
      
      
    
      other versions
    
    - Tumbleweed 0.40-1.34
 - Leap-15.6
 
| Mo::coerce(3) | User Contributed Perl Documentation | Mo::coerce(3) | 
Name¶
Mo::coerce - Adds the coerce feature to Mo's has
Synopsis¶
    use Mo qw'coerce';
    has name => ( coerce => sub { uc $_[0] } );
Description¶
Adds the coerce parameter to has, which expects a code reference, which is used to transform the value to be set.
| 2016-07-08 | perl v5.42.0 |