MooseX::Clone::Meta::Attribute::Trait::Copy - Simple copying of arrays and hashes for MooseX::Clone
version 0.06
has foo => ( isa => "ArrayRef", traits => [qw(Copy)], );
Unlike the Clone trait, which does deep copying of almost anything, this trait will only do one additional level of copying of arrays and hashes.
Clone
This is both simpler and faster when you don't need a real deep copy of the entire structure, and probably more correct.
יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>
This software is copyright (c) 2008 by יובל קוג'מן (Yuval Kogman).
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
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.