---
name: "MooseX::Clone::Meta::Attribute::Trait::Copy"
section: "3pm"
platform: "linux"
package: "libmoosex-clone-perl"
version: "0.06-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/MooseX::Clone::Meta::Attribute::Trait::Copy"
---

# MooseX::Clone::Meta::Attribute::Trait::Copy(3pm)

Simple copying of arrays and hashes for MooseX::Clone

## NAME

MooseX::Clone::Meta::Attribute::Trait::Copy - Simple copying of arrays and hashes for MooseX::Clone

## VERSION

version 0.06

## SYNOPSIS

```
    has foo => (
        isa => "ArrayRef",
        traits => [qw(Copy)],
    );
```

## DESCRIPTION

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.

This is both simpler and faster when you don't need a real deep copy of the entire structure, and probably more correct.

## AUTHOR

XXXX XXX'XX (Yuval Kogman) \<nothingmuch@woobling.org\>

## COPYRIGHT AND LICENSE

This software is copyright (c) 2008 by XXXX XXX'XX (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.
