MooseX::Declare::Syntax::EmptyBlockIfMissing
The MooseX::Declare::Syntax::NamespaceHandling role will require that the consumer handles the case of non-existant blocks. This role will inject an empty block with only the generated code parts in it.
Object->handle_missing_block (Object $context, Str $body, %args)
This will inject the generated code surrounded by { ... } into the code where the keyword was called.
{ ... }
MooseX::Declare
MooseX::Declare::Syntax::NamespaceHandling
See MooseX::Declare
To install MooseX::Declare, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Declare
CPAN shell
perl -MCPAN -e shell install MooseX::Declare
For more information on module installation, please visit the detailed CPAN module installation guide.