Re: problem using a module



On Oct 28, 2005, at 21:59, jm wrote:

On 10/28/05, Wiggins d'Anconia <wiggins@xxxxxxxxxxxx> wrote:



That seems like a very odd error. One thing I do notice is that you are
including "DBI" in the path to 'use lib'. This would have to mean that
the DBI module lives in "$ENV{HOME}/modules/DBI/DBI.pm". Is that the
case? Or should your use lib line just be "$ENV{HOME}/modules"??


HTH,

http://danconia.org




you're right; upon further reading (i'm still researching) i
discovered that discrepancy and removed the "/DBI"

I don't understand this.

If the problem was that use lib pointed to the wrong directory, then

    use DBI;

would fail and the compilation would be aborted with

    Can't locate DBI.pm in @INC (@INC contains: ...

If you forgot to use DBI then the message would be:

    Can't locate object method "connect" via package "DBI"
    (perhaps you forgot to load "DBI"?)

But I can't reproduce the error message you sent. Anyone?

-- fxn

.