Subject: | perl 5.12 package NAME VERSION not understood |
Date: | Fri, 1 Apr 2011 14:17:23 -0700 |
To: | bug-Perl-Critic [...] rt.cpan.org |
From: | Aaron Priven <aaron [...] priven.com> |
The following:
--
#!perl
# $Id$
use 5.012;
use warnings;
package MyPackage 0.001;
--
yields this:
% perlcritic --verbose 8 packagetest
[Modules::RequireVersionVar] No package-scoped "$VERSION" variable found at
line 1, column 1. (Severity: 2)
[ValuesAndExpressions::ProhibitMagicNumbers] 0.001 is not one of the allowed
literal values (-1, 0, 1, 2). Use the Readonly or Const::Fast module or the
"constant" pragma instead at line 8, column 19. (Severity: 1)
I think these should not show up.
Thanks,
--
Aaron Priven, aaron@priven.com