all options
trixie  ] [  forky  ] [  sid  ]
[ Source: libperl-critic-policy-plicease-prohibitarrayassignaref-perl  ]

Package: libperl-critic-policy-plicease-prohibitarrayassignaref-perl (100.00-2)

Links for libperl-critic-policy-plicease-prohibitarrayassignaref-perl

Screenshot

Debian Resources:

Download Source Package libperl-critic-policy-plicease-prohibitarrayassignaref-perl:

Maintainers:

External Resources:

Similar packages:

Perl::Critic policy about not assigning an anonymous arrayref to an array

The Perl::Critic::Policy::Plicease::ProhibitArrayAssignAref policy is a fork of Perl::Critic::Policy::ValuesAndExpressions::ProhibitArrayAssignAref. It differs from the original by not having a dependency on List::MoreUtils.

It asks you not to assign an anonymous arrayref to an array

 @array = [ 1, 2, 3 ]; # bad

The idea is that it's rather unclear whether an arrayref is intended, or might have meant to be a list like

 @array = ( 1, 2, 3 );

Other Packages Related to libperl-critic-policy-plicease-prohibitarrayassignaref-perl

  • depends
  • recommends
  • suggests
  • enhances

Download libperl-critic-policy-plicease-prohibitarrayassignaref-perl

Download for all available architectures
Architecture Package Size Installed Size Files
all 11.5 kB31.0 kB [list of files]