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

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

by faq_monk (Initiate)
on Oct 08, 1999 at 00:29 UTC ( #754=perlfaq nodetype: print w/replies, xml ) Need Help??

Current Perl documentation can be found at perldoc.perl.org.

Here is our local, out-dated (pre-5.6) version:

Here are the suggested ways of modifying your include path:

    the PERLLIB environment variable
    the PERL5LIB environment variable
    the perl -Idir commpand 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[shmem]: unbelievable. ergo insurance germany offers a contract: paying 1.5 euro a day over 18 years, they ensure a payback of 7.501 euro
[shmem]: *if* there is a bonus due, they would pay 9.250
[shmem]: don't expect anything noteworthy from a countrie's elections in which such things are shrugged off.
[shmem]: otoh, hindering me from spending the money before due time is worth some fee, isn't it?

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2017-09-19 15:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (222 votes). Check out past polls.

    Notices?