Solved

can't locate module perl error

Posted on 2009-06-30
3
172 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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…

808 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