By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,280 Members | 1,693 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,280 IT Pros & Developers. It's quick & easy.

Can't locate module in @INC

P: 1

I am getting an error

Can't locate in @INC (@INC contains: /appleng/stage/preref/bin/../.. /appleng/stage/preref/bin /usr/local/oracle/perl/5.8.1/lib /usr/local/oracle/perl/5.8.1/addon /usr/local/oracle/perl/addon /usr/local/git/perl-addon) at line 37.

where as in the script I have added the path to in the following lines

use FindBin qw($Bin);
use lib qw($Bin/../.. $Bin);

$Bin ( /appleng/stage/preref/bin ) contains
$Bin/../.. contains other modules which I use.

It is very surprising that the script works fine in /appleng/dev/preref/bin
and the same script does not work at /appleng/stage/preref/bin

Please help in identifying the cause of this error.

Thanks and Regards,
Apr 8 '08 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 971
I would suggest that you hard code the following line rather than using a variable.

Expand|Select|Wrap|Line Numbers
  1. use lib '/path/to/modules';
Apr 8 '08 #2

Post your reply

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