MD5 | 49189FA2DD4A9AB86B4B5C62DA4B2BB9 |
PackageArch | noarch |
PackageDescription | This policy checks for the existence of multiple variables with the same
name in a file. This can be confusing especially when accessing elements of
variables or using list or key-value slices. For example, the code could
access both '$foo' and '$foo[0]' but these actually refer to the unrelated
variables '$foo' and '@foo'.
my $foo = @foo; # not ok
my @bar = @bar{'a','b'}; # not ok
my $count = @foo; # ok
my @values = @bar{'a','b'}; # ok |
PackageName | perl-Perl-Critic-Policy-Variables-NameReuse |
PackageRelease | 1.27 |
PackageVersion | 0.1.0 |
SHA-1 | AFA303DBD99424DD9A8EF259107A62099168EC54 |
SHA-256 | 290A168070D2360E039AB89E2AA7469C376B91FBB918FEA8C7CED050EB00F03F |