in reply to Re: use Module and case-insensitive file names
in thread use Module and case-insensitive file names
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: use Module and case-insensitive file names
by japhy (Canon) on Jul 31, 2001 at 00:46 UTC | |
by John M. Dlugosz (Monsignor) on Jul 31, 2001 at 01:03 UTC | |
by japhy (Canon) on Jul 31, 2001 at 01:34 UTC | |
by John M. Dlugosz (Monsignor) on Jul 31, 2001 at 01:59 UTC | |
by japhy (Canon) on Jul 31, 2001 at 02:06 UTC | |
| |
by John M. Dlugosz (Monsignor) on Jul 31, 2001 at 02:13 UTC | |
by japhy (Canon) on Jul 31, 2001 at 02:22 UTC |