libclone-pp-perl 1.07-ok1 source package in openKylin
Changelog
libclone-pp-perl (1.07-ok1) yangtze; urgency=medium * Build for openKylin. -- openKylinBot <email address hidden> Mon, 25 Apr 2022 22:03:04 +0800
libclone-pp-perl (1.07-ok1) yangtze; urgency=medium * Build for openKylin. -- openKylinBot <email address hidden> Mon, 25 Apr 2022 22:03:04 +0800
Series | Published | Component | Section |
---|
File | Size | SHA-256 Checksum |
---|---|---|
libclone-pp-perl_1.07.orig.tar.gz | 9.3 KiB | bf85e109b7d9a10677db82fa65c1720ae95499a49cbb676d4b3d1b183786b395 |
libclone-pp-perl_1.07-ok1.debian.tar.xz | 1.9 KiB | a351be6c3dec94347b8ca425a1185d056d3a7fa62439387f3a0b9a4a64344ab6 |
libclone-pp-perl_1.07-ok1.dsc | 1.9 KiB | fc7dc8e8419a605a7f121453773756375168bcd0c34fb35df3ebce1b06409bcd |
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.