MooseX::Clone::Meta::Attribute::Trait::NoClone - A trait for attrs that should not be copied while cloning.
with qw(MooseX::Clone); has _some_special_thingy => ( traits => [qw(NoClone)], );
Sometimes certain values should not be carried over when cloning an object.
This attribute trait implements just that.
If the init_arg param is set (that means an explicit value was given to clone) sets the attribute to that value.
init_arg
clone
Otherwise calls clear_value and initialize_instance_slot.
clear_value
initialize_instance_slot
To install MooseX::Clone, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Clone
CPAN shell
perl -MCPAN -e shell install MooseX::Clone
For more information on module installation, please visit the detailed CPAN module installation guide.