Re: How to avoid multiple Inclusions of perl modules.. or how to detect mutliple inclusions.
- From: Phani Ranjan <PhaniRanjan@xxxxxxxxx>
- Date: Wed, 17 Sep 2008 20:47:32 -0700 (PDT)
On Sep 17, 2:22 pm, sisyphus <sisyphus...@xxxxxxxxx> wrote:
On Sep 17, 4:17 pm, Phani Ranjan <PhaniRan...@xxxxxxxxx> wrote:
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-Hidequoted 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.
What does lines 43 and 44 of Resource.pm contain ? (This may have no
bearing on the problem.)
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 .)
Which of the @INC directories mentioned above contains
TMAsiaUtils.pm ?
Could you 'cd' to that directory, run 'dir' and provide a copy'n'paste
of the output. (We don't need to see the *entire* output if it's big -
all we need to see is that TMAsiaUtils.pm does, in fact, exist in that
directory.)
if (-e "../../SupportFunctions") {use lib "../../SupportFunctions";}
else {use lib "./SupportFunctions";}
if (-e "../../Utils") {use lib "../../Utils";} else {use lib "./
Utils";}
Note that none of those directories is actually in @INC when the
attempt to load TMAsiaUtils.pm is made. Could that be the problem ?
Cheers,
Rob- Hide quoted text -
- Show quoted text -
Hi Rob.. please find below cd out put of that directory
09/17/2008 04:09 PM <DIR> .
09/17/2008 04:09 PM <DIR> ..
06/13/2008 03:36 PM 7,575 AKAUtils.pm
06/13/2008 03:36 PM 2,225 ASNDecoder.pl
09/17/2008 09:59 AM 18,587 CommonUtils.pm
08/08/2008 12:34 PM 3,418 Config.ini
09/16/2008 05:36 PM 9,758 Constants.pm
06/13/2008 03:36 PM 17,536 ControllerUtils.pm
06/13/2008 03:36 PM 2,990 FtpUtils.pm
06/13/2008 03:36 PM 4,662 GLMSUtils.pm
09/17/2008 10:09 AM 32,227 LoggerUtils.pm
09/17/2008 12:20 PM 20,159 LogParser.pm
06/13/2008 03:36 PM 51 mailList.txt
06/13/2008 03:36 PM 4,448 MDIUtils.pm
06/13/2008 03:36 PM 1,574 MiscUtils.pm
06/13/2008 03:36 PM 15,450 mrgtmp0
06/13/2008 03:36 PM 15,450 mrgtmp1
06/13/2008 03:36 PM 15,450 mrgtmp2
06/13/2008 03:36 PM 15,450 mrgtmp3
06/13/2008 03:36 PM 20,928 MsgDecodeUtils.pm
06/13/2008 03:36 PM 1,392 ParserMsgUtils.pm
06/13/2008 03:36 PM 1,435 ParserUtils.pm
09/17/2008 12:23 PM 17,620 PresenceUtils.pm
06/13/2008 03:36 PM 1,197 ProxyUtils.pm
06/13/2008 03:36 PM 54,917 PTTMenuUtils.pm
08/06/2008 03:18 PM 6,909 PXDMConstants.pm
07/29/2008 12:29 PM 5,057 qpconfig_host.xml
06/13/2008 03:36 PM 18,934 RacoonUtils.pm
09/16/2008 05:33 PM 2,363 Resource.pm
06/13/2008 03:36 PM 47,142 RTPUtils.pm
06/13/2008 03:36 PM 3,873 SIPResponseUtils.pm
09/17/2008 10:12 AM 217,391 SIPUtils.pm
09/16/2008 02:51 PM 0 SIP_IMS_PUB_005.log
09/16/2008 02:51 PM 13,159 SIP_IMS_PUB_005_UMTS PDP
CONTEXT 0_IP.pcap
09/17/2008 09:35 AM 145 test.pl
09/17/2008 12:06 PM 16,621 TMAsiaUtils.pm
09/17/2008 10:12 AM 35,838 TmUtils.pm
06/13/2008 03:36 PM 15,355 UeUtils.pm
06/13/2008 03:36 PM 33,090 XDMUtils.pm
37 File(s) 700,376 bytes
2 Dir(s) 86,460,592,128 bytes free
It was working fine, but when i added a new perl module .. it started
troubling..all modules are in the 2 folders.. and other modules are
not getting problems..
.
- 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
- 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: sisyphus
- 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
|