Debian Codegraph @

debian/control

raw
1 Source: libclone-pp-perl
2 Maintainer: Debian Perl Group <[email protected]>
3 Uploaders: Axel Beckert <[email protected]>
4 Section: perl
5 Testsuite: autopkgtest-pkg-perl
6 Priority: optional
7 Build-Depends: debhelper-compat (= 13)
8 Build-Depends-Indep: perl
9 Standards-Version: 4.5.0
10 Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libclone-pp-perl
11 Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libclone-pp-perl.git
12 Homepage: https://metacpan.org/release/Clone-PP
13 Rules-Requires-Root: no
14
15 Package: libclone-pp-perl
16 Architecture: all
17 Depends: ${misc:Depends},
18 ${perl:Depends}
19 Multi-Arch: foreign
20 Description: module to recursively copy Perl datatypes
21 Clone::PP provides a general-purpose clone function to make deep
22 copies of Perl data structures. It calls itself recursively to copy
23 nested hash, array, scalar and reference types, including tied
24 variables and objects.
25 .
26 The clone() function takes a scalar argument to copy. To duplicate
27 arrays or hashes, pass them in by reference:
28 .
29 my $copy = clone(\@array); my @copy = @{ clone(\@array) };
30 my $copy = clone(\%hash); my %copy = %{ clone(\%hash) };
31 .
32 The clone() function also accepts an optional second parameter that
33 can be used to limit the depth of the copy. If you pass a limit of
34 0, clone will return the same value you supplied; for a limit of
35 1, a shallow copy is constructed; for a limit of 2, two layers of
36 copying are done, and so on.
37 .
38 This is a pure-perl implementation. For a faster XS-/C-based
39 implementation see the libclone-perl package.