View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Ingy döt Net > Mo > Mo::coerce



Annotate this POD


View/Report Bugs
Module Version: 0.39   Source   Latest Release: Mo-0.40

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.

syntax highlighting: