in reply to Re^3: Module not included but present in %INC!
in thread Module not included but present in %INC!
Thanks for your reply Corion
I reduced my pm file and wrote another .pl so as to reproduce the problem. Here they are: The test.pl file, which includes the .pm file:
So if the culprit is CorrelationEngine.pm, how can I make sure it loads Date::Parse?
I'm at my wits end with this now; seems so simple, can't figure out why its not working.
Please help!
Trupti
I reduced my pm file and wrote another .pl so as to reproduce the problem. Here they are: The test.pl file, which includes the .pm file:
The CorrelationEngine.pm file:#!/usr/bin/perl use strict; use warnings; use Dante::Correlation::CorrelationEngine; my $correlationEngine = Dante::Correlation::CorrelationEngine->new(1); $correlationEngine->testFunction(); exit;
Executing test.pl results in following error:# # Dante::Correlation::CorrelationEngine.pm - Implements top-level co +rrelation logic. # ########## use strict; use warnings; use Date::Parse; # There are a bunch of other .pm includes here, but they are modules f +or the project, not any other perl module # There are other functions here, not listed, of course sub testFunction { print str2time("2011-03-18 02:39:04") . "\n"; print str2time("1970-01-01 00:00:10") . "\n"; print str2time("2012-01-05 14:23:09") . "\n"; } # Must return 1 for the class to be compilable. 1; # End of Dante::Correlation::CorrelationEngine.pm
./test2.pl Undefined subroutine &Dante::Correlation::CorrelationEngine::str2time +called at Dante/Correlation/CorrelationEngine.pm line 664.
So if the culprit is CorrelationEngine.pm, how can I make sure it loads Date::Parse?
I'm at my wits end with this now; seems so simple, can't figure out why its not working.
Please help!
Trupti
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Module not included but present in %INC!
by Eliya (Vicar) on Jan 06, 2012 at 17:07 UTC | |
Re^5: Module not included but present in %INC!
by toolic (Bishop) on Jan 06, 2012 at 17:41 UTC | |
by truptivk (Novice) on Jan 09, 2012 at 11:02 UTC | |
Re^5: Module not included but present in %INC!
by choroba (Cardinal) on Jan 06, 2012 at 16:57 UTC |
In Section
Seekers of Perl Wisdom