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

perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash-0.9.0-1.1 RPM for noarch

From OpenSuSE Tumbleweed for noarch

Name: perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash Distribution: openSUSE Tumbleweed
Version: 0.9.0 Vendor: openSUSE
Release: 1.1 Build date: Tue Jan 13 06:44:59 2026
Group: Unspecified Build host: reproducible
Size: 11780 Source RPM: perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash-0.9.0-1.1.src.rpm
Packager: https://bugs.opensuse.org
Url: https://metacpan.org/release/Perl-Critic-Policy-Variables-ProhibitLoopOnHash
Summary: Don't write loops on hashes, only on keys and values of hashes
When "looping over hashes," we mean looping over hash keys or hash values.
If you forgot to call 'keys' or 'values' you will accidentally loop over
both.

    foreach my $foo (%hash) {...}        # not ok
    action() for %hash;                  # not ok
    foreach my $foo ( keys %hash ) {...} # ok
    action() for values %hash;           # ok

An effort is made to detect expressions:

    action() for %hash ? keys %hash : ();                             # ok
    action() for %{ $hash{'stuff'} } ? keys %{ $hash{'stuff'} } : (); # ok

(Granted, the second example there doesn't make much sense, but I have
found a variation of it in real code.)

Provides

Requires

License

MIT

Changelog

* Tue Jan 13 2026 Tina Müller <timueller+perl@suse.de>
  - updated to 0.9.0 (0.009)
    see /usr/share/doc/packages/perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash/Changes
    0.009     2026-01-12 09:57:39+01:00 Europe/Amsterdam
    * Don't crash on `for my $foo @bar {...}`. (Graham @haarg Knop)
    * License is now MIT.
* Tue Apr 23 2019 Stephan Kulow <coolo@suse.com>
  - updated to 0.008
    see /usr/share/doc/packages/perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash/Changes
    0.008     2019-04-22 16:44:54+03:00 Asia/Jerusalem
    * GH #3: Some typo fixed. (Jakub Wilk)
* Wed Apr 03 2019 Stephan Kulow <coolo@suse.com>
  - initial package 0.007
    * created by cpanspec 1.78.09

Files

/usr/lib/perl5/vendor_perl/5.42.0/Perl
/usr/lib/perl5/vendor_perl/5.42.0/Perl/Critic
/usr/lib/perl5/vendor_perl/5.42.0/Perl/Critic/Policy
/usr/lib/perl5/vendor_perl/5.42.0/Perl/Critic/Policy/Variables
/usr/lib/perl5/vendor_perl/5.42.0/Perl/Critic/Policy/Variables/ProhibitLoopOnHash.pm
/usr/share/doc/packages/perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash
/usr/share/doc/packages/perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash/Changes
/usr/share/doc/packages/perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash/README
/usr/share/licenses/perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash
/usr/share/licenses/perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash/LICENSE
/usr/share/man/man3/Perl::Critic::Policy::Variables::ProhibitLoopOnHash.3pm.gz


Generated by rpm2html 1.8.1

Fabrice Bellet, Thu Jan 22 22:27:13 2026