Package: perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash (0.9.0-1.4)
No escriba bucles sobre hashes, solo sobre claves y valores de hashes
Cuando hablamos de «recorrer hashes», nos referimos a recorrer las claves o los valores del hash. Si olvida llamar a 'keys' o 'values', recorrerá accidentalmente ambos. foreach my $foo (%hash) {...} # not ok action() for %hash; # not ok foreach my $foo ( keys %hash ) {...} # ok action() for values %hash; # ok Se intenta detectar expresiones: action() for %hash ? keys %hash : (); # ok action() for %{ $hash{'stuff'} } ? keys %{ $hash{'stuff'} } : (); # ok (Cierto, el segundo ejemplo no tiene mucho sentido, pero he encontrado una variación en código real.)
Package information
- Homepage
- [https://metacpan.org/release/Perl-Critic-Policy-Variables-ProhibitLoopOnHash]
- License
- MIT
- Mantenedor del paquete downstream
- Desconocido: no consta en la fuente indexada
- Paquete fuente
- [perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash]
- Software project
- [libperl-critic-policy-variables-prohibitlooponhash-perl]
Versions and downloads for perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash
| Version / release | Architecture / repository | Package size | Installed size | Files | Publisher repository artifact |
|---|---|---|---|---|---|
| 0.9.0-1.4tumbleweed / oss | noarchopenSUSE Tumbleweed · OSS · multi-architecture | 15 KiB | 12 KiB | list of files | perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash-0.9.0-1.4.noarch.rpm |
About these downloads
Cada fila es metadato del índice de paquetes para una versión, arquitectura, suite y repositorio. Nombres, URL y tamaños vienen de la fuente; un enlace es un punto de descarga que puede cambiar, no una redistribución de OpenFactory.
Dependencies and recommendations for perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash
dep: perl(:MODULE_COMPAT_5.44.0)
Package not available
dep: perl(List::Util) (>= 1.33)
Package not available
dep: perl(Perl::Critic) (>= 1.126)
Package not available
dep: perl(parent)
Package not available
Rutas de archivos del paquete (11)
Paths come from the repository package-file index for the observed builds. They describe archive/package associations, not every file that will exist on a running system after maintainer scripts, alternatives, generated state, diversions, or installation choices.
- /usr/lib/perl5/vendor_perl/5.44.0/Perl
- /usr/lib/perl5/vendor_perl/5.44.0/Perl/Critic
- /usr/lib/perl5/vendor_perl/5.44.0/Perl/Critic/Policy
- /usr/lib/perl5/vendor_perl/5.44.0/Perl/Critic/Policy/Variables
- /usr/lib/perl5/vendor_perl/5.44.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
Field source: openSUSE Tumbleweed OSS
