Subject: | OptionsProcessor vs perl 5.8.3 Exporter |
Date: | Sun, 05 Sep 2010 08:35:26 +1000 |
To: | bug-Perl-Critic [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
With perl 5.8.3 Perl::Critic::OptionsProcessor in the cvs bombs with
":color_severity" is not exported by the Perl::Critic::Utils::Constants module
Apparently Exporter.pm 5.57 demands that a :foo tag is first on the
import line. Switching to :color_severity first works,
Index: OptionsProcessor.pm
===================================================================
--- OptionsProcessor.pm (revision 3918)
+++ OptionsProcessor.pm (working copy)
@@ -19,8 +19,8 @@
:booleans :characters :severities :data_conversion $DEFAULT_VERBOSITY
>;
use Perl::Critic::Utils::Constants qw<
+ :color_severity # crib: tags first for Exporter 5.57 in perl 5.8.3
$PROFILE_STRICTNESS_DEFAULT
- :color_severity
>;
use Perl::Critic::Utils::DataConversion qw< dor >;