Solved

how to modify perl @INC array

Posted on 2002-06-04
3
2,723 Views
Last Modified: 2010-05-18
How do I modify @INC array ?

I want to be able to use a module that is installed in a different location of perl (than the one that I normally use). So I was told to modify INC array.

thanks.
0
Comment
Question by:chazhs
3 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 7055084
use lib 'location of module';
0
 
LVL 5

Accepted Solution

by:
dkjariwala earned 50 total points
ID: 7056238
push (@INC,'/your/path/to/folder');


That might do.

JD
0
 

Author Comment

by:chazhs
ID: 7063586
Thank You! This was the answer I was looking for!
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Edit Odbc.ini using perl module 2 84
Get a Perl script to return content from a module 7 80
Vb script to unzip a files and rename the files 5 92
Perl Untar File 1 45
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question