Re: How to avoid multiple Inclusions of perl modules.. or how to detect mutliple inclusions.



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.
.