Re: How to avoid multiple Inclusions of perl modules.. or how to detect mutliple inclusions.
- From: xhoster@xxxxxxxxx
- Date: 17 Sep 2008 16:35:49 GMT
Phani Ranjan <PhaniRanjan@xxxxxxxxx> wrote:
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";}
These don't do what you think they do. "use" is carried out when it
is encountered at compile time. It is done unconditionally, so putting
it in an if block doesn't do anything meaningful.
Xho
--
-------------------- http://NewsReader.Com/ --------------------
The costs of publication of this article were defrayed in part by the
payment of page charges. This article must therefore be hereby marked
advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate
this fact.
.
- 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
- 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):