Solved

can't locate module perl error

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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

778 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