Yup, it shows the name in the program, not the actual file name:
Perhaps the right place would be in the code that searches @INC for the module? If it finds something that differs only in case, and it's a case-insentive OS, issue a warning and take the file name that was actually found, so things import properly.[D:\download\public\Perl]perl -MData::Dumper -e "use cArP; print Dumpe +r (\%%INC)" VAR1 = { 'Exporter.pm' => 'D:/Program Files/Perl-5.6/lib/Exporter.pm', 'Carp.pm' => 'D:/Program Files/Perl-5.6/lib/Carp.pm', 'XSLoader.pm' => 'D:/Program Files/Perl-5.6/lib/XSLoader.pm', 'warnings/register.pm' => 'D:/Program Files/Perl-5.6/lib/warn +ings/register.pm', 'warnings.pm' => 'D:/Program Files/Perl-5.6/lib/warnings.pm', 'overload.pm' => 'D:/Program Files/Perl-5.6/lib/overload.pm', 'Data/Dumper.pm' => 'D:/Program Files/Perl-5.6/lib/Data/Dumpe +r.pm', 'cArP.pm' => 'D:/Program Files/Perl-5.6/lib/cArP.pm' };
I don't know why, but Data::Dumper for example just doesn't work if called DaTA::Dumper, even though there is no error of any kind.
—John
In reply to Re: Re: use Module and case-insensitive file names
by John M. Dlugosz
in thread use Module and case-insensitive file names
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |