disable warnings inside generated version sub (RT#89282)
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Sun, 6 Oct 2013 16:17:00 +0000 (17:17 +0100)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Sun, 6 Oct 2013 16:42:05 +0000 (17:42 +0100)
commit72a35bb929a03a3264e4a56ce650b94c0a821aca
tree2c1b7f0a3044a7efc46aa7b3871dbf685679d2f5
parente86dd03eba6f1a2bae12e2d6d24163bd11d2bab1
disable warnings inside generated version sub (RT#89282)

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.
Changes
lib/Module/Metadata.pm
t/metadata.t