1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
Source: libhash-safekeys-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Uploaders: Mason James <mtj@kohaaloha.com>
Section: perl
Testsuite: autopkgtest-pkg-perl
Priority: optional
Build-Depends: debhelper-compat (= 13),
libtest-simple-perl <!nocheck>,
perl-xs-dev,
perl:native
Standards-Version: 4.6.2
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libhash-safekeys-perl
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libhash-safekeys-perl.git
Homepage: https://metacpan.org/release/Hash-SafeKeys
Rules-Requires-Root: no
Package: libhash-safekeys-perl
Architecture: any
Depends: ${misc:Depends},
${perl:Depends},
${shlibs:Depends},
libtest-simple-perl
Description: Perl module to get hash contents without resetting each iterator
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:
.
while (my($k,$v) = each %hash) {
...
@k = sort safekeys %hash; # Can do
@v = grep { /foo/ }, safevalues %hash; # No problem
print join ' ', safecopy %hash; # Right away, sir
}
|