Bug#697993: libtest-critic-perl: Comma separated statement false positive on scalar hashref

Salvatore Bonaccorso carnil at debian.org
Sat Jan 12 16:06:55 UTC 2013


Hi Guillem

On Sat, Jan 12, 2013 at 04:20:36PM +0100, Guillem Jover wrote:
> Package: libperl-critic-perl
> Version: 1.118-1
> Severity: normal
> Tags: upstream
> 
> Hi!
> 
> Here's what seems like a false positive that I found while going over
> the dpkg code:
> 
> ,--- scalarref-comma.pl
> #!/usr/bin/perl
> 
> use strict;
> use warnings;
> 
> our $VERSION = '0.0';
> 
> my $scalarref = \{
>     'name' => [],
> };
> 
> 1;
> `---
> 
> Reproducible with:
> 
>   $ perlcritic -s ProhibitCommaSeparatedStatements scalarref-comma.pl
> 
> If the single quotes around 'name' are removed, then it does not seem
> to trigger.

Thanks, also this issue forwarded to upstream.

Regards,
Salvatore



More information about the pkg-perl-maintainers mailing list