Source: libhash-safekeys-perl Maintainer: Debian Perl Group Uploaders: Mason James Section: perl Testsuite: autopkgtest-pkg-perl Priority: optional Build-Depends: debhelper-compat (= 13), libtest-simple-perl , 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 }