summaryrefslogtreecommitdiff
path: root/devel/p5-Tie-RefHash
diff options
context:
space:
mode:
authorabs <abs>2008-06-23 03:55:33 +0000
committerabs <abs>2008-06-23 03:55:33 +0000
commit4e5a51a07831a04241b12a6034d99f44b61270b7 (patch)
tree4ee5fd0757eccb4aa7f2381220feb381235409d7 /devel/p5-Tie-RefHash
parent10a25515ee8e93063e213d9afaba20d766b7870e (diff)
downloadpkgsrc-4e5a51a07831a04241b12a6034d99f44b61270b7.tar.gz
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 (limited to 'devel/p5-Tie-RefHash')
-rw-r--r--devel/p5-Tie-RefHash/DESCR13
-rw-r--r--devel/p5-Tie-RefHash/Makefile18
-rw-r--r--devel/p5-Tie-RefHash/distinfo5
3 files changed, 36 insertions, 0 deletions
diff --git a/devel/p5-Tie-RefHash/DESCR b/devel/p5-Tie-RefHash/DESCR
new file mode 100644
index 00000000000..7f7c03bb58b
--- /dev/null
+++ b/devel/p5-Tie-RefHash/DESCR
@@ -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 --git a/devel/p5-Tie-RefHash/Makefile b/devel/p5-Tie-RefHash/Makefile
new file mode 100644
index 00000000000..c76075319ff
--- /dev/null
+++ b/devel/p5-Tie-RefHash/Makefile
@@ -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
+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 --git a/devel/p5-Tie-RefHash/distinfo b/devel/p5-Tie-RefHash/distinfo
new file mode 100644
index 00000000000..8c763e49c27
--- /dev/null
+++ b/devel/p5-Tie-RefHash/distinfo
@@ -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