Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Require a script not found in @INC array

by mifflin (Curate)
on Oct 07, 2004 at 03:12 UTC ( #397214=note: print w/replies, xml ) Need Help??


in reply to Require a script not found in @INC array

For Question 3, see perlfaq8.
It details a few ways to add to the INC array....
  How do I add a directory to my include path (@INC) 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 lib.pm pragmatic module was first included
    with the 5.002 release of Perl.
  • Comment on Re: Require a script not found in @INC array

Replies are listed 'Best First'.
Re^2: Require a script not found in @INC array
by pingo (Hermit) on Oct 07, 2004 at 09:21 UTC
    One could also do something like this (but it is less pretty):

    BEGIN { unshift @INC, '/my/path'; }
Re^2: Require a script not found in @INC array
by mifflin (Curate) on Oct 07, 2004 at 12:56 UTC
    That is also in perlfaq8

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2020-12-05 18:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (65 votes). Check out past polls.

    Notices?