Solved

can't locate module perl error

Posted on 2009-06-30
3
170 Views
Last Modified: 2012-05-07
Can't locate Test/Report.pm in @INC i am getting this error when i run my Perl script. The location of the file is src/lib/share/Output. I have included this in @INC but still i facing this error
0
Comment
Question by:saibsk
3 Comments
 
LVL 13

Expert Comment

by:Carl Bohman
ID: 24748752
Is the module located in src/lib/share/Output or src/lib/share/Output/Test?  Assuming src/lib/share/Output is in @INC, Perl is expecting the module to be in src/lib/share/Output/Test.
0
 

Author Comment

by:saibsk
ID: 24749032
The module is in src/lib/share/Output/Test
0
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
ID: 24750093
How are you including the location in  @INC
remember that use runs before the code, so
push @INC,"/src/lib/share/Output/";
#is to late to affect
use Test::Report;
to include the path first, you could either put it in a BEGIN block or
use lib "/src/lib/share/Output";
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Connecting to linux server using Net::Telnet module 25 220
PERL export multiple query results to a JSON file 1 160
perl split by | 2 90
Regex rule to match two different url 5 60
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now