pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/p5-Hash-SafeKeys



Module Name:    pkgsrc
Committed By:   wiz
Date:           Thu Jan  4 11:04:19 UTC 2024

Added Files:
        pkgsrc/devel/p5-Hash-SafeKeys: DESCR Makefile distinfo

Log Message:
devel/p5-Hash-SafeKeys: import p5-Hash-SafeKeys-0.04

Every hash variable in Perl has its own internal iterator, accessed
by the builtin each, keys, and values functions. The iterator is
also implicitly used whenever the hash is evaluated in list context.
The iterator is "reset" whenever keys or values is called on a
hash, including the implicit calls when the hash is evaluated in
list context. That makes it dangerous to do certain hash operations
inside a while ... each loop.

Hash::SafeKeys provides alternate functions to access the keys,
values, or entire contents of a hash in a way that does not reset
the iterator, making them safe to use in such contexts.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/p5-Hash-SafeKeys/DESCR \
    pkgsrc/devel/p5-Hash-SafeKeys/Makefile \
    pkgsrc/devel/p5-Hash-SafeKeys/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/p5-Hash-SafeKeys/DESCR
diff -u /dev/null pkgsrc/devel/p5-Hash-SafeKeys/DESCR:1.1
--- /dev/null   Thu Jan  4 11:04:19 2024
+++ pkgsrc/devel/p5-Hash-SafeKeys/DESCR Thu Jan  4 11:04:19 2024
@@ -0,0 +1,11 @@
+Every hash variable in Perl has its own internal iterator, accessed
+by the builtin each, keys, and values functions. The iterator is
+also implicitly used whenever the hash is evaluated in list context.
+The iterator is "reset" whenever keys or values is called on a
+hash, including the implicit calls when the hash is evaluated in
+list context. That makes it dangerous to do certain hash operations
+inside a while ... each loop.
+
+Hash::SafeKeys provides alternate functions to access the keys,
+values, or entire contents of a hash in a way that does not reset
+the iterator, making them safe to use in such contexts.
Index: pkgsrc/devel/p5-Hash-SafeKeys/Makefile
diff -u /dev/null pkgsrc/devel/p5-Hash-SafeKeys/Makefile:1.1
--- /dev/null   Thu Jan  4 11:04:19 2024
+++ pkgsrc/devel/p5-Hash-SafeKeys/Makefile      Thu Jan  4 11:04:19 2024
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2024/01/04 11:04:19 wiz Exp $
+
+DISTNAME=              Hash-SafeKeys-0.04
+PKGNAME=               p5-${DISTNAME}
+CATEGORIES=            devel perl5
+MASTER_SITES=          ${MASTER_SITE_PERL_CPAN:=../../authors/id/M/MO/MOB/}
+
+MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=              https://metacpan.org/dist/Hash-SafeKeys
+COMMENT=               Perl5 module to get hash contents without resetting each iterator
+LICENSE=               ${PERL5_LICENSE}
+
+USE_LANGUAGES=         c
+PERL5_PACKLIST=                auto/Hash/SafeKeys/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/p5-Hash-SafeKeys/distinfo
diff -u /dev/null pkgsrc/devel/p5-Hash-SafeKeys/distinfo:1.1
--- /dev/null   Thu Jan  4 11:04:19 2024
+++ pkgsrc/devel/p5-Hash-SafeKeys/distinfo      Thu Jan  4 11:04:19 2024
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2024/01/04 11:04:19 wiz Exp $
+
+BLAKE2s (Hash-SafeKeys-0.04.tar.gz) = 482c846b491ea7f60ccc01ed9e9af34fba48cf600d97852ee66532e8a7028ef8
+SHA512 (Hash-SafeKeys-0.04.tar.gz) = bb1bec9e4bedcaaf20c8fd22c46650025f005b1db1888c01752df4690878268ee1ade9b1a2ce6588cfcf66fd651aa359843e3228fc9620b18a787427c2dc566a
+Size (Hash-SafeKeys-0.04.tar.gz) = 9262 bytes



Home | Main Index | Thread Index | Old Index