in reply to Re: Module::Metadata case sensitivity
in thread Module::Metadata case sensitivity

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)

Replies are listed 'Best First'.
Re^3: Module::Metadata case sensitivity
by tobyink (Canon) on Aug 19, 2018 at 07:21 UTC

    Oh, you're using OS X? That makes sense then. The OS X file system (HFS) is case-insensitive. CGI.pm and cgi.pm are the same file.

    It will report the same case for the module name but not the package name, because modules are files but packages are namespaces.