This shuts up warnings from modules like Log::Log4perl::Appender::Limit,
which does:
our $CVSVERSION = '$Revision: 1.7 $';
our ($VERSION) = ($CVSVERSION =~ /(\d+\.\d+)/);
When only only the second line is eval-ed, that would cause an
uninitialized value warning.
Release history for Module-Metadata
+ - warnings now disabled inside during the evaluation of generated version
+ sub (BinGOs, RT#89282)
+
1.000018 2013-09-11
- re-release of detainting fix without unstated non-core test dependencies
#; package Module::Metadata::_version::p$pn;
use version;
no strict;
+ no warnings;
\$vsub = sub {
local $sigil$var;
1;
}
---
+ '0' => <<'---', # set from separately-initialised variable
+package Simple;
+ our $CVSVERSION = '$Revision: 1.7 $';
+ our ($VERSION) = ($CVSVERSION =~ /(\d+\.\d+)/);
+}
+---
);
my %modules = reverse @modules;