Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

more @INC problems

Status
Not open for further replies.

yim11

MIS
Jun 26, 2000
35
US
Hello,<br>I am working on a cgi script that uses util::LOG, which refers to LOG.pm, a file locally on my system. But when I try to run the script the http error log states that &quot;Can't locate util/LOG.pm in @INC (@INC contains. . . . .)&quot;.<br><br>My question is how can I tell @INC where LOG.pm is, i.e. how do I add directories to @INC?<br><br>I am using Perl 5.003 on a Redhat 6.0 system<br><br>TIA for all help!<br>-Jim<br>
 
I don't know the answer, but you'd probably get a quicker answer if you posted this in the perl thread.&nbsp;&nbsp;Just a suggestion. <p>Jon Zimmer<br><a href=mailto:b0rg@pcgeek.net>b0rg@pcgeek.net</a><br><a href= Aetea Information Technology</a><br>The software required `Windows 95 or better', so I installed Linux.<br>
 
Probably a better question for the Perl forum, but to answer anyway, you can use the <FONT FACE=monospace>lib</font> module.&nbsp;&nbsp;Put a line like the following at the beginning of you program:<br><FONT FACE=monospace><br>use lib <i>list</i>;<br></font><br>Every item in <i>list</i> will be added to your @INC.&nbsp;&nbsp;You can also exclude directories by using &quot;no lib <i>list</i>;&quot;. <p> <br><a href=mailto: > </a><br><a href= > </a><br>--<br>
0 1 - Just my two bits
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top