in reply to Re: Module present in @INC but not found
in thread Module present in @INC but not found

If you do that, though, make sure the package declaration matches the module name, or you'll end up with very confusing results.

Replies are listed 'Best First'.
Re^3: Module present in @INC but not found
by chromatic (Archbishop) on Jan 20, 2007 at 06:36 UTC

    The only one I can think of is if you use a different module name in a separate use or require statement. Did you have another in mind?

      What I meant is, if you say use Typo; and Typo.pm contains the line package Tyop; then the module will load fine but the namespace you thought you just populated will be empty.

      This has bitten me when I've changed the directory structure of things and altered the use statements to match, but forgot to change the package declarations in the files that I just moved.