Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Adding a directory to @INC permenantly

by jdavidboyd (Friar)
on Jul 02, 2002 at 18:42 UTC ( #178955=note: print w/replies, xml ) Need Help??

in reply to Adding a directory to @INC permenantly

Perl FAQ 8 offers the following, under the question of:

How do I add a directory to my include path at runtime?

Here are the suggested ways of modifying your include path:

   the PERLLIB environment variable
   the PERL5LIB environment variable
   the perl -Idir command line flag
   the use lib pragma, as in
      use lib "$ENV{HOME}/myown_perllib";

The latter is particularly useful because it knows about machine dependent architectures. The pragmatic module was first included with the 5.002 release of Perl.

Myself, I go for the perl -Idir version.
  • Comment on Re: Adding a directory to @INC permenantly

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2022-05-27 01:06 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (94 votes). Check out past polls.