MooseX...t::Copy(3pm)
β¨ NAME β¨
MooseX::Clone::Meta::Attribute::Trait::Copy β bestie, this is the trait that does simple copying of arrays and hashes for MooseX::Clone π«Ά (the manual page is titled MooseX...t::Copy(3pm) if you were squinting at the tab-completion, iykyk)
π VERSION π
This is version 0.06, no cap β¨
πΈ SYNOPSIS πΈ
Okay so literally all you do is this:
has foo => (
isa => "ArrayRef",
traits => [qw(Copy)],
);
That's it. That's the whole vibe. Slay π
π¦ DESCRIPTION π¦
So here's the tea, bestie π β there's a Clone trait, right, and Clone goes deep on almost anything. Like, everything. Full excavation. Every nested thing gets its own little copy.
This trait? Not that. This one does only one additional level of copying, and only for arrays and hashes. Just one level. One. Level. π
And honestly? That's iconic of it. It's both simpler and faster when you don't actually need a real deep copy of the entire structure β and, per the docs, probably more correct too. Periodt π
π AUTHOR π
XXXX XXX'XX (Yuval Kogman) β hit them up at <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. So go off, fr fr π
π« cute little sign-off π«
This page came to you from perl v5.34.0, dated 2022-06-15, under the manual name MooseX...t::Copy(3pm) β and it was contributed by the lovely people in User Contributed Perl Documentation π«Άβ¨ bye bestie, go copy exactly one level of something π¦
π¦ where this page comes from
- debian bookworm: libmoosex-clone-perl 0.06-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmoosex-clone-perl 0.06-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmoosex-clone-perl 0.06-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmoosex-clone-perl 0.06-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmoosex-clone-perl 0.06-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms