Subject: | Incorrectly reports derived version as 0 |
If I use Module::Metadata (1.000037) to get the version of the (for example) CPANPLUS::Configure package, it returns 0.
perl -M5.14.2 -MModule::Metadata -e 'my $info = Module::Metadata->new_from_file("/usr/local/perl-5.14.2_64_8/lib/5.14.2/CPANPLUS/Configure.pm"); say $info->version'
CPANPLUS::Configure requires CPANPLUS::Internals and derives its version from there
package CPANPLUS::Configure;
...
require CPANPLUS::Internals;
$VERSION = $CPANPLUS::Internals::VERSION = $CPANPLUS::Internals::VERSION;
...
package CPANPLUS::Internals;
...
$VERSION = "0.9103";
...
I would expect to get the version "0.9103" or at least some feedback that derived versions are not resolved!