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-8.mga8 RPM for x86_64

From Mageia 8 for x86_64 / media / core / release

Name: perl-Hash-SafeKeys Distribution: Mageia
Version: 0.40.0 Vendor: Mageia.Org
Release: 8.mga8 Build date: Wed Jun 17 21:21:07 2020
Group: Development/Perl Build host: localhost
Size: 33822 Source RPM: perl-Hash-SafeKeys-0.40.0-8.mga8.src.rpm
Packager: umeabot <umeabot>
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 Jun 17 2020 umeabot <umeabot> 0.40.0-8.mga8
  + Revision: 1594806
  - Rebuild for perl 5.32
* Sat Feb 15 2020 umeabot <umeabot> 0.40.0-7.mga8
  + Revision: 1529098
  - Mageia 8 Mass Rebuild
* Tue Aug 27 2019 tv <tv> 0.40.0-6.mga8
  + Revision: 1433090
  - rebuild with perl-5.30
* Fri Sep 21 2018 umeabot <umeabot> 0.40.0-5.mga7
  + Revision: 1293191
  - Mageia 7 Mass Rebuild
* Wed Aug 08 2018 pterjan <pterjan> 0.40.0-4.mga7
  + Revision: 1249486
  - Rebuild for perl 5.28

Files

/usr/lib/.build-id
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/77d71c2eeef72035788769366ebc036395769e
/usr/lib64/perl5/vendor_perl/Hash
/usr/lib64/perl5/vendor_perl/Hash/SafeKeys.pm
/usr/lib64/perl5/vendor_perl/auto
/usr/lib64/perl5/vendor_perl/auto/Hash
/usr/lib64/perl5/vendor_perl/auto/Hash/SafeKeys
/usr/lib64/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, Tue Apr 9 15:38:33 2024