in reply to Re^2: Module name case typo silent failure
in thread Module name case typo silent failure
IMHO the problem is at another place.
It's OK that ->import() is not required to exist inside a package (or let's say I doubt that this can be changed in a backwards compatible way).
But trying to call a method on a non-existing package could fail. I.e. use could check if the MODULE-name exists in the right capitalization after require.*
But for reasons that I do not understand yet does require auto-vivify the misspelled package.
DB<7> require DaTa::DuMpEr DB<8> x grep {/dumper/i} %DaTa:: 0 'DuMpEr::' 1 *DaTa::DuMpEr:: DB<9>
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
*) or if it exists twice in different capitalizations.
|
|---|