libclone-pp-perl 1.08-2 source package in Ubuntu
Changelog
libclone-pp-perl (1.08-2) unstable; urgency=medium [ Debian Janitor ] * Apply multi-arch hints. + libclone-pp-perl: Add Multi-Arch: foreign. -- Jelmer Vernooij <email address hidden> Thu, 13 Oct 2022 22:52:55 +0100
Upload details
- Uploaded by:
- Debian Perl Group
- Uploaded to:
- Sid
- Original maintainer:
- Debian Perl Group
- Architectures:
- all
- Section:
- perl
- Urgency:
- Medium Urgency
See full publishing history Publishing
Series | Published | Component | Section | |
---|---|---|---|---|
Oracular | release | universe | perl | |
Noble | release | universe | perl | |
Mantic | release | universe | perl | |
Lunar | release | universe | perl |
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
libclone-pp-perl_1.08-2.dsc | 2.0 KiB | 078f3a76be9d8d7a597c5a858cb57589693ee7ebf6d5834be8ec63b238f73f5d |
libclone-pp-perl_1.08.orig.tar.gz | 9.3 KiB | 57203094a5d8574b6a00951e8f2399b666f4e74f9511d9c9fb5b453d5d11f578 |
libclone-pp-perl_1.08-2.debian.tar.xz | 3.1 KiB | 26a46a47f748174c3cdddadcca0f57b31fd4046de7ed3972e42387a87ca28262 |
Available diffs
- diff from 1.08-1 to 1.08-2 (526 bytes)
No changes file available.
Binary packages built by this source
- libclone-pp-perl: module to recursively copy Perl datatypes
Clone::PP provides a general-purpose clone function to make deep
copies of Perl data structures. It calls itself recursively to copy
nested hash, array, scalar and reference types, including tied
variables and objects.
.
The clone() function takes a scalar argument to copy. To duplicate
arrays or hashes, pass them in by reference:
.
my $copy = clone(\@array); my @copy = @{ clone(\@array) };
my $copy = clone(\%hash); my %copy = %{ clone(\%hash) };
.
The clone() function also accepts an optional second parameter that
can be used to limit the depth of the copy. If you pass a limit of
0, clone will return the same value you supplied; for a limit of
1, a shallow copy is constructed; for a limit of 2, two layers of
copying are done, and so on.
.
This is a pure-perl implementation. For a faster XS-/C-based
implementation see the libclone-perl package.