++ed by:
DELON EGOR DHOSS ARPI KEEDI

18 PAUSE users
16 non-PAUSE users.

Ingy döt Net

Name

Mo::default - Adds the default feature to Mo's has

Synopsis

    use Mo qw'default';
    has name => ( default => sub { 'Joe' } );

Description

Adds the default parameter to has, which expects a code reference, returning a value to be used to set the attribute to if it hasn't been set yet.

Currently this is always called lazily.