Find the answer to your Linux question:
Results 1 to 2 of 2
How can I edit @INC I want to append a path "/usr/lib/perl5/5.8.0/Win32_1.05" in @INC Please...Help..... Thanks Pawan...
  1. #1
    Just Joined!
    Join Date
    Jun 2006
    Posts
    40

    How to add path in @INC

    How can I edit @INC

    I want to append a path "/usr/lib/perl5/5.8.0/Win32_1.05" in @INC

    Please...Help.....


    Thanks
    Pawan

  2. #2
    drl
    drl is offline
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Location
    Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
    Posts
    1,117
    Hi.
    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 depen-
    dent architectures. The lib.pm pragmatic module was first included
    with the 5.002 release of Perl.
    -- excerpt from perldoc -q inc
    The perldoc utility can be of great help ... cheers, drl
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...