Solved

can't locate module perl error

Posted on 2009-06-30
3
169 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
Comment Utility
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
Comment Utility
The module is in src/lib/share/Output/Test
0
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

772 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