pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/p5-Tie-RefHash import p5-Tie-RefHash-1.38



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6260b40dd3d4
branches:  trunk
changeset: 543822:6260b40dd3d4
user:      abs <abs%pkgsrc.org@localhost>
date:      Mon Jun 23 03:55:33 2008 +0000

description:
import p5-Tie-RefHash-1.38
This module provides the ability to use references as hash keys if
you first tie the hash variable to this module. Normally, only the
keys of the tied hash itself are preserved as references; to use
references as keys in hashes-of-hashes, use Tie::RefHash::Nestable,
included as part of Tie::RefHash.

It is implemented using the standard perl TIEHASH interface. Please
see the tie entry in perlfunc(1) and perltie(1) for more information.

The Nestable version works by looking for hash references being
stored and converting them to tied hashes so that they too can have
references as keys. This will happen without warning whenever you
store a reference to one of your own hashes in the tied hash.

diffstat:

 devel/p5-Tie-RefHash/DESCR    |  13 +++++++++++++
 devel/p5-Tie-RefHash/Makefile |  18 ++++++++++++++++++
 devel/p5-Tie-RefHash/distinfo |   5 +++++
 3 files changed, 36 insertions(+), 0 deletions(-)

diffs (48 lines):

diff -r 082598dd4e56 -r 6260b40dd3d4 devel/p5-Tie-RefHash/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Tie-RefHash/DESCR        Mon Jun 23 03:55:33 2008 +0000
@@ -0,0 +1,13 @@
+This module provides the ability to use references as hash keys if
+you first tie the hash variable to this module. Normally, only the
+keys of the tied hash itself are preserved as references; to use
+references as keys in hashes-of-hashes, use Tie::RefHash::Nestable,
+included as part of Tie::RefHash.
+
+It is implemented using the standard perl TIEHASH interface. Please
+see the tie entry in perlfunc(1) and perltie(1) for more information.
+
+The Nestable version works by looking for hash references being
+stored and converting them to tied hashes so that they too can have
+references as keys. This will happen without warning whenever you
+store a reference to one of your own hashes in the tied hash.
diff -r 082598dd4e56 -r 6260b40dd3d4 devel/p5-Tie-RefHash/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Tie-RefHash/Makefile     Mon Jun 23 03:55:33 2008 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/06/23 03:55:33 abs Exp $
+
+DISTNAME=      Tie-RefHash-1.38
+PKGNAME=       p5-${DISTNAME}
+CATEGORIES=    textproc perl5
+MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=Tie/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://search.cpan.org/dist/Tie-RefHash/
+COMMENT=       Use references as hash keys
+
+USE_LANGUAGES= # empty
+PERL5_PACKLIST=        auto/Tie/RefHash/.packlist
+
+PKG_DESTDIR_SUPPORT=    user-destdir
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 082598dd4e56 -r 6260b40dd3d4 devel/p5-Tie-RefHash/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Tie-RefHash/distinfo     Mon Jun 23 03:55:33 2008 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/06/23 03:55:33 abs Exp $
+
+SHA1 (Tie-RefHash-1.38.tar.gz) = 66433ba7ff0529908d6f1053ef611a5c952e777f
+RMD160 (Tie-RefHash-1.38.tar.gz) = 8f4b2534b353ea9524f09d14c4df7827c5084ea8
+Size (Tie-RefHash-1.38.tar.gz) = 7736 bytes



Home | Main Index | Thread Index | Old Index