Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: `use lib' confusion

by Aristotle (Chancellor)
on Nov 16, 2002 at 22:04 UTC ( [id://213456]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://213456]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-18 03:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found