pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/doc Added devel/p5-Clone-PP version 1.02



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2327f8ac6b39
branches:  trunk
changeset: 529802:2327f8ac6b39
user:      abs <abs%pkgsrc.org@localhost>
date:      Sun Jun 10 11:43:35 2007 +0000

description:
Added devel/p5-Clone-PP version 1.02

This module 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:

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.

diffstat:

 doc/CHANGES-2007 |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r ae20622d3605 -r 2327f8ac6b39 doc/CHANGES-2007
--- a/doc/CHANGES-2007  Sun Jun 10 11:42:22 2007 +0000
+++ b/doc/CHANGES-2007  Sun Jun 10 11:43:35 2007 +0000
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES-2007,v 1.1329 2007/06/10 11:42:22 xtraeme Exp $
+$NetBSD: CHANGES-2007,v 1.1330 2007/06/10 11:43:35 abs Exp $
 
 Changes to the packages collection and infrastructure in 2007:
 
@@ -2540,3 +2540,4 @@
        Added devel/p5-Sub-Exporter version 0.974 [abs 2007-06-10]
        Added devel/p5-Data-OptList version 0.101 [abs 2007-06-10]
        Updated x11/fox to 1.6.27 [xtraeme 2007-06-10]
+       Added devel/p5-Clone-PP version 1.02 [abs 2007-06-10]



Home | Main Index | Thread Index | Old Index