libclone-pp-perl - module to recursively copy Perl datatypes

Distribution: Debian 8 (Jessie)
Repository: Debian Main amd64
Package name: libclone-pp-perl
Package version: 1.06
Package release: 1
Package architecture: all
Package type: deb
Installed size: 61 B
Download size: 9.86 KB
Official Mirror:
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.




    Source package: libclone-pp-perl

    Install Howto

    1. Update the package index:
      # sudo apt-get update
    2. Install libclone-pp-perl deb package:
      # sudo apt-get install libclone-pp-perl


    • /usr/share/doc/libclone-pp-perl/changelog.Debian.gz
    • /usr/share/doc/libclone-pp-perl/changelog.gz
    • /usr/share/doc/libclone-pp-perl/copyright
    • /usr/share/lintian/overrides/libclone-pp-perl
    • /usr/share/man/man3/Clone::PP.3pm.gz
    • /usr/share/perl5/Clone/


    2014-07-23 - Salvatore Bonaccorso <> libclone-pp-perl (1.06-1) unstable; urgency=medium * Team upload. [ Axel Beckert ] * New upstream release [ Salvatore Bonaccorso ] * Imported Upstream version 1.06

    2014-02-17 - gregor herrmann <> libclone-pp-perl (1.04-1) unstable; urgency=medium * Team upload. * New upstream release. * debian/copyright: switch formatting to Copyright-Format 1.0.

    2014-01-04 - Axel Beckert <> libclone-pp-perl (1.02-2) unstable; urgency=low [ gregor herrmann ] * debian/control: Changed: Switched Vcs-Browser field to ViewSVN (source stanza). [ Ansgar Burchardt ] * debian/control: Convert Vcs-* fields to Git. [ gregor herrmann ] * debian/control: update {versioned,alternative} (build) dependencies. [ Salvatore Bonaccorso ] * Change Vcs-Git to canonical URI (git:// * Change based URIs to based URIs [ Axel Beckert ] * Switch to source format "3.0 (quilt)" * Override lintian warning using-first-person-in-description (false positive in example Perl code: "my $variable") * Fix lintian warning copyright-refers-to-symlink-license * Bump debhelper compatibility to 9 + Update versioned debhelper build-dependency accordingly * Revamp debian/rules + Fix lintian warning debian-rules-missing-recommended-target + Replace "dh_clean -k" with "dh_prep" + Use dh_auto_{configure,build,test,install,clean} + Remove obsolete /usr/lib/perl5 handling + Drop obsolete dh_clean stamp file parameters + Remove obsolete variable usage and targets + Finally switch to a minimal dh-style debian/rules file * No more install redundant README (generated from POD) * Bump Standards-Version to 3.9.5 (no further changes) * Mention "pure perl" and libclone-perl in long description. * Add myself as Uploader.

    2007-05-23 - Krzysztof Krzy┼╝aniak (eloy) <> libclone-pp-perl (1.02-1) unstable; urgency=low * Initial Release (closes: #472939).