Subject: | q{} operator is not recognised by Perl::Critic::Policy::TestingAndDebugging::ProhibitNoWarnings |
Date: | Thu, 26 Jan 2012 10:36:16 +0000 |
To: | bug-Benchmark-Perl-Formance-Cargo [...] rt.cpan.org |
From: | Gil Gamesh <gamesh.g [...] gmail.com> |
With the following lines in ~/.perlcriticrc
[TestingAndDebugging::ProhibitNoWarnings]
allow = uninitialized
Perlcritic reports "warnings disabled" when run against the following
code snippet.
use 5.012;
use warnings;
my $i;
no warnings q{uninitialized};
say $i;
Using single quote marks instead works as documented.
J.