473,574 Members | 2,704 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Modify the contents of @INC

4 New Member
I can't seem to figure out how to modify the contents of @INC. I want to tell perl to look in a different directory when searching for modules. Any thoughts?
Jan 12 '07 #1
3 11304
511 Recognized Expert Contributor
if you look at the online perldoc, this is what is stated
perldoc -q INC

Expand|Select|Wrap|Line Numbers
  1. How do I add a directory to my include path (@INC) at runtime?
  3.        Here are the suggested ways of modifying your include path:
  5.            the PERLLIB environment variable
  6.            the PERL5LIB environment variable
  7.            the perl ‐Idir command line flag
  8.            the use lib pragma, as in
  9.                use lib "$ENV{HOME}/myown_perllib";
  11.        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.
Jan 12 '07 #2
1,089 Recognized Expert Top Contributor
This is what you need:

Jan 12 '07 #3
4 New Member
Thanks that works. However now a new problem. Spent 5 hours searching google and online docs but ... you know the drill

I am running IIS6 and last week all my scripts ran fine. Something changed because out of the blue all my scripts started saying "Cant locate XXX.pm in @INC" I used the lib to fix that and now I get "The specified CGI application misbehaved by not returning a complete set of HTTP headers."

All my scripts print out "Content-type: text/html\n\n" before anything else so I thought this error was a result of installing PHP but I still get this even after I removed PHP.

Jan 12 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Phester | last post by:
If a file has a .inc extension, or if it has a .inc.php extension, is it treated differently by the php interpreter? Or is it just a convention? I've been calling my included files filename.php and it doesn't seem to hurt anything. Is it wrong to do that? E
by: Chris McKeever | last post by:
I am trying to modify the Mailman Python code to stop mapping MIME-types and use the extension of the attachment instead. I am pretty much clueless as to what I need to do here, but I think I have narrowed it down to the Scrubber.py file.. If this seems like a quick step me through, I would be very appreciative, could get you something on...
by: Dung Ping | last post by:
Some time ago someone on this forum helped me with the attached coding. The page is in: www.pinyinology.com/keys/keys2.html When clicking the ok, the letters will change one by one. I like the four letters change at same time, rather than one by one. Also, can I add another set of symbols, such as ♣, ♦, ♥ and...
by: Charles Sullivan | last post by:
I'm working on a program which has a "tree" of command line arguments, i.e., myprogram level1 ]] such that there can be more than one level2 argument for each level1 argument and more than one level3 argument for each level2 argument, etc. Suppose I code it similar to this fragment: int main( int argc, char *argv ) {
by: baumann.Pan | last post by:
when define char *p = " can not modify"; p ='b' ;is not allowed, but if you declare p as char p = "can modify"; p = 'b'; is ok? why?
by: darrel | last post by:
This is maybe a blue-sky wish, but I have to ask... Can .net access/modify the contents of an HTML tag on the page? For instance, in XML, one can grab and set the properties for a tag. In ..net, one can grab and set the properties of a webcontrol tag. What I was specifically wondering is if I could modify the contents of the TITLE tag...
by: ed_spain | last post by:
Hi Everyone, Before I write the script myself, I'm looking for PHP code that checks that a link's content type matches it's contents. I need this for my "broken link" checker script, which fails to spot the "broken" links http://www.awin1.com/show.php?mid=1014&linkid=36515&aid=49007 and...
by: IchBin | last post by:
What are the advantages or disadvantages of .inc files over the 'include' statement. I can't seem to find that information at the PHP website. Also the same for form building inline, I guess you would call it, and HTML template objects. File types of .tpl and .ihtml? Thanks in Advance... IchBin, Pocono Lake, Pa, USA ...
by: goodguyjam | last post by:
Hi all, I'm having trouble with mysql. I've just finished my php coding for HTTP authentication and with some help am now getting a login window pop up whenever I click on a link on my website that directs to Auth.php. The code for this is below: <?php /* Program: Auth.php * Desc: Program that prompts for a user name and * ...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.