#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Posts
    108
    Rep Power
    15
    Hello.

    Is it possible to change the location that @INC points to in PERL? I am running the script through telenet, but it will not run the include scripts I added.

    Thanks
    yoshi http://www.datera.com
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>Is it possible to change the location that @INC points to in PERL?

    You can't change to another location.
    If your perl module was installed in another non-standard location, you can add a "use lib" line.

    Here is an example of my most frequently use perl module..
    Fields.pm is in this non-standard location: /home/username/public_html/lib/Sort/Fields.pm

    You would need to add the following to your script:
    use lib '/home/username/public_html/lib';
    use Sort::Fields;

    Doing so will not change the path of your @INC, however, it will add the "use lib" path in addition to its search path.

IMN logo majestic logo threadwatch logo seochat tools logo