Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

perl-Hash-SafeKeys-0.40.0-12.mga10 RPM for i586

From Mageia Cauldron for i686 / media / core / release

Name: perl-Hash-SafeKeys Distribution: Mageia
Version: 0.40.0 Vendor: Mageia.Org
Release: 12.mga10 Build date: Wed Nov 29 15:29:28 2023
Group: Development/Perl Build host: localhost
Size: 32938 Source RPM: perl-Hash-SafeKeys-0.40.0-12.mga10.src.rpm
Packager: tv <tv>
Url: https://metacpan.org/release/Hash-SafeKeys
Summary: Get hash contents without resetting each iterator
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:

    while (my($k,$v) = each %hash) {
       ...
       @k = sort keys %hash;               # Infinite loop!
       @v = grep { /foo/ }, values %hash;  # Ack!
       print join ' ', %hash;              # Run away!
    }

'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:

Provides

Requires

License

GPL+ or Artistic

Changelog

* Wed Nov 29 2023 tv <tv> 0.40.0-12.mga10
  + Revision: 2011130
  - Rebuild for perl-5.38
* Tue Jun 07 2022 umeabot <umeabot> 0.40.0-11.mga9
  + Revision: 1861914
  - Rebuild for Perl 5.36
* Thu Mar 17 2022 umeabot <umeabot> 0.40.0-10.mga9
  + Revision: 1795786
  - Mageia 9 Mass Rebuild

Files

/usr/lib/.build-id
/usr/lib/.build-id/82
/usr/lib/.build-id/82/8199853ba5cc2de09246f4b9160d9d38e897a1
/usr/lib/perl5/vendor_perl/Hash
/usr/lib/perl5/vendor_perl/Hash/SafeKeys.pm
/usr/lib/perl5/vendor_perl/auto
/usr/lib/perl5/vendor_perl/auto/Hash
/usr/lib/perl5/vendor_perl/auto/Hash/SafeKeys
/usr/lib/perl5/vendor_perl/auto/Hash/SafeKeys/SafeKeys.so
/usr/share/doc/perl-Hash-SafeKeys
/usr/share/doc/perl-Hash-SafeKeys/Changes
/usr/share/doc/perl-Hash-SafeKeys/META.json
/usr/share/doc/perl-Hash-SafeKeys/META.yml
/usr/share/doc/perl-Hash-SafeKeys/MYMETA.yml
/usr/share/doc/perl-Hash-SafeKeys/README
/usr/share/man/man3/Hash::SafeKeys.3pm.xz


Generated by rpm2html 1.8.1

Fabrice Bellet, Fri Aug 23 03:19:57 2024