Undef? That's what I expected. On my system (5.26.2 on osx) the case-typo unexpectedly triggers the proper search but then unexpectedly propagates the wrong case to the filename and module values:
> perl -MModule::Metadata -MData::Dumper -le "print(Dumper(Module::Met
+adata->new_from_module('Data::DUMPer')))"
$VAR1 = bless( {
'inc' => [
'/path/to'
],
'pod' => {},
'packages' => [
'Data::Dumper'
],
'version' => undef,
'collect_pod' => undef,
'versions' => {
'Data::Dumper' => bless( {
'original'
+ => '2.167',
'version'
+=> [
+ 2,
+ 167
+ ]
}, 'version'
+ )
},
'pod_headings' => [
'NAME',
'SYNOPSIS',
'DESCRIPTION',
'Methods',
'Functions',
'Configuration Variables or Metho
+ds',
'Exports',
'EXAMPLES',
'BUGS',
'NOTE',
'AUTHOR',
'VERSION',
'SEE ALSO'
],
'module' => 'Data::DUMPer',
'filename' => '/path/to/Data/DUMPer.pm'
}, 'Module::Metadata' );
> perl -MModule::Metadata -le'print $Module::Metadata::VERSION'
1.000033 (current)
|