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



On Sep 16, 10:23 pm, sisyphus <sisyphus...@xxxxxxxxx> wrote:
...
Can't locate <>.pm in @INC though it is present in that location.. i

I recall that someone (somewhere) once claimed that they got that
error because, although the pm file existed, its permissions were
wrong. Frankly, I don't believe that claim - but you could check the
permissions anyway.

In fact, permissions can cause exactly that error:

# ls -l Foo.pm
-rw------- 1 root g1 31 Sep 23 21:01 Foo/Foo.pm
$ who am i
nonroot....
$ perl -we 'use Foo'
Can't locate Foo.pm in @INC (@INC contains:
/...perl.../lib/sun4-solaris
/...perl.../lib
/...perl.../lib/site_perl/sun4-solaris /...perl.../lib/site_perl
..
) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

--
Charles DeRykus
.



Relevant Pages