in reply to Module present in @INC but not found

The file should have been put at /home/kcella/lib/Config/CronJob.pm, or you could have been used your module this way

use Config::CronJob::CronJob;
  • Comment on Re: Module present in @INC but not found

Replies are listed 'Best First'.
Re^2: Module present in @INC but not found
by friedo (Prior) on Jan 19, 2007 at 15:53 UTC
    If you do that, though, make sure the package declaration matches the module name, or you'll end up with very confusing results.

      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.