?
Solved

can't locate module perl error

Posted on 2009-06-30
3
Medium Priority
?
176 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
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…
Six Sigma Control Plans

800 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