in reply to `use lib' confusion

There's no obvious reason why it would be going wrong.. shot in the dark: if you're using this from a script that doesn't run under your UID (such as a CGI script), have you made sure the permissions on SomeDir are correct?

Makeshifts last the longest.

Replies are listed 'Best First'.
Re: Re: `use lib' confusion
by mikeirw (Pilgrim) on Nov 16, 2002 at 22:15 UTC

    It is in fact a CGI script. The perms on all directories are 0755 and 0644 for the modules, so Apache can read them.

    Everything works if I move 'SomeModule.pm' to '/home/mikeirw/lib', and just do:

    use SomeModule;

    ...so the problem is that perl is not descending into 'SomeDir'.

      What happens if you
      use lib '/home/mikeirw/lib/SomeDir'; use SomeModule;
      ?

      Makeshifts last the longest.