Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Re: how to include a directory in @INC?

by snadra (Scribe)
on Jun 26, 2003 at 11:18 UTC ( #269187=note: print w/replies, xml ) Need Help??

in reply to Re: how to include a directory in @INC?
in thread how to include a directory in @INC?

If you are root, you can add an @inc path to the /etc/profile aswell, so the path will be set for every user after booting.
The entry could look like this:
export PERL5LIB

The problem is, this does not work with CGI, it is only recommandable for people who don't use CGI.
You need to set $PERL5LIB then inside of the httpd.conf aswell, I think, but I have not tried that yet.

I am using a symbolic link now. I put that link into one of the @inc paths.
This is working recursively under Linux, so I can call my modules like:
use Linked_Dir::Dir::Module;
  • Comment on Re: Re: how to include a directory in @INC?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://269187]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2017-11-19 03:51 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (278 votes). Check out past polls.