Subject: | a bug in Perl::Critic::Policy::TestingAndDebugging::RequireUseStrict (false-positive) |
Date: | Mon, 12 Jan 2009 01:43:35 +0500 |
To: | bug-Perl-Critic [...] rt.cpan.org |
From: | Alexander Krasnorutsky <krasnoroot [...] mail.ru> |
Greetings!
I think that there is a CRITICal bug in this implementation of the
policy: it does not `understand' that "use strict" is a block-scoped
"pragma". So code like this:
#=======================
BEGIN { use strict } 1;
#=======================
does not cause any warnings about violation from the policy.
Best regards
--
Alexander Krasnorutsky.