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!

How to Reference a file in another directory ???

Status
Not open for further replies.

hysaccess

Programmer
May 27, 2003
12
AU
Hello Guys or Gurls,

Here is a small sniplet of the first 6 lines of my CGI file:

#!/usr/bin/perl
#use strict;
#use warnings;
use CGI::Carp qw(fatalsToBrowser);
use lib 'modules';
use conf;

The error that i get is on line 6 this is because the conf.pm does not reside in the #!/usr/bin/perl, but actually resides on:

x:\mydomain.com\config\conf.pm


how do i fix this up ?
 
add another use lib line


====

use lib 'x:\mydomain.com\config\' ;

===

That will add that path to your @INC and make the file available for use.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top