Bug#706303: libperl-critic-perl: until block false-positive in hash key

Guillem Jover guillem at debian.org
Sat Apr 27 23:29:55 UTC 2013


Package: libperl-critic-perl
Version: 1.118-1
Severity: normal

Hi!

I found the following false-positive while going through the dpkg code
base:

,--- until.pl ---
#!/usr/bin/perl

use strict;
use warnings;

our $VERSION = '0.00';

my %hash;

$hash{since}   = 0;
$hash{until}   = 1;
$hash{'until'} = 0;
`---

which gives:

  $ perlcritic --verbose 1 -1 until.pl
  until.pl:11:7:"until" block used

Thanks,
Guillem



More information about the pkg-perl-maintainers mailing list