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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

@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>
 
Copy of the reply I just posted to the Linux forum:<br><br>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><br>use lib list;<br></font><br>Every item in list will be added to your @INC.&nbsp;&nbsp;You can also exclude directories by using &quot;no lib list;&quot;. <br><br><br> <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