Re: How to avoid multiple Inclusions of perl modules.. or how to detect mutliple inclusions.
- From: Phani Ranjan <PhaniRanjan@xxxxxxxxx>
- Date: Tue, 16 Sep 2008 23:17:49 -0700 (PDT)
On Sep 17, 10:12 am, Sherm Pendley <spamt...@xxxxxxxxxxx> wrote:
Phani Ranjan <PhaniRan...@xxxxxxxxx> writes:
On Sep 16, 11:39 pm, Sherm Pendley <spamt...@xxxxxxxxxxx> wrote:
PhaniRan...@xxxxxxxxx writes:
i have many modules which inturn use among themselvs.. some times i
get the following error..
Can't locate <>.pm in @INC though it is present in that location..
Perl isn't just guessing. It looked, and the fact that you get this
error indicates that the requested module is *not* in fact present at
that location.
Look more closely at your use statement, and the list of directories
printed in the error message. One of them is not what you think it
is.
Thanks for the info.. but i can see the files peresent in the
specified libs folder..
Denying that an error *can* happen, when it clearly *is* happening, is
not productive.
As I said - examine your use statement closely. Examine the directory
listing closely. Post the exact error message here - copy and paste
the whole thing, including the list of directories in @INC. Tell us
what file you think Perl should be finding, and what directory it's
in.
sherm--
--
My blog:http://shermspace.blogspot.com
Cocoa programming in Perl:http://camelbones.sourceforge.net- Hide quoted text -
- Show quoted text -
hi Sherm..
sorry.. for not providing enough details..
below is the error thrown..
Useless use of a variable in void context at ../../Utils/Resource.pm
line 43.
Useless use of a variable in void context at ../../Utils/Resource.pm
line 44.
Can't locate TMAsiaUtils.pm in @INC (@INC contains: C:\Program Files
\ActiveState Komodo IDE 4\lib\support\dbgp\perllib c:\staf\bin c:
\PROGRA~1\Qualcomm\Asia\PerlEnv C:/Perl/lib C:/Perl/site/lib .) at C:
\Perforce\qcom\qct\multimedia\ims\test\main\latest\testscripts
\TestScripts\PresenceXDM\SIP_IMS_PUB_005.pl line 29.
BEGIN failed--compilation aborted at C:\Perforce\qcom\qct\multimedia
\ims\test\main\latest\testscripts\TestScripts\PresenceXDM
\SIP_IMS_PUB_005.pl line 29.
i have directory structure like this
../Utils/<*.pm>
../SupportFunctions/<*.pm>
../TestScripts/PXDMScripts/<*.pl>
i got error in .pl script.. pm files in Utils and Support functions
are using other .pm files among themselves..
all perl scirpts contain inclusions as below..
if (-e "../../SupportFunctions") {use lib "../../SupportFunctions";}
else {use lib "./SupportFunctions";}
if (-e "../../Utils") {use lib "../../Utils";} else {use lib "./
Utils";}
use CommonUtils;
use TmUtils;
use SIPUtils;
use LoggerUtils;
use GLMSHeader;
use GLMSUtils;
use PXDMConstants;
use PresenceUtils;
use TMAsiaUtils;
use ASIA_Main;
let me know if you need some other information..
.
- Follow-Ups:
- References:
- How to avoid multiple Inclusions of perl modules.. or how to detect mutliple inclusions.
- From: PhaniRanjan
- Re: How to avoid multiple Inclusions of perl modules.. or how to detect mutliple inclusions.
- From: Sherm Pendley
- Re: How to avoid multiple Inclusions of perl modules.. or how to detect mutliple inclusions.
- From: Phani Ranjan
- Re: How to avoid multiple Inclusions of perl modules.. or how to detect mutliple inclusions.
- From: Sherm Pendley
- How to avoid multiple Inclusions of perl modules.. or how to detect mutliple inclusions.
- Prev by Date: Re: How to avoid multiple Inclusions of perl modules.. or how to detect mutliple inclusions.
- Next by Date: Re: How to avoid multiple Inclusions of perl modules.. or how to detect mutliple inclusions.
- Previous by thread: Re: How to avoid multiple Inclusions of perl modules.. or how to detect mutliple inclusions.
- Next by thread: Re: How to avoid multiple Inclusions of perl modules.. or how to detect mutliple inclusions.
- Index(es):
Relevant Pages
|