Subject: | False positive in TestingAndDebugging::RequireUseStrict |
I'm getting a false positive for violating the
TestingAndDebugging::RequireUseStrict policy. I tend to start my scripts
and modules with this:
BEGIN { require 5.006 }
use strict;
use warnings;
I've been doing this for so long that I can no longer remember the exact
reason for using a BEGIN block instead of C<use VERSION>. IIRC it
behaves better on old versions of perl.
The documentation for the policy says that it's okay to have a
C<require> before C<use strict>. That's really all I have here but the
BEGIN block seems to be throwing Perl::Critic off.