in reply to configuring @INC

You're changing the name of the module so that it would be found in the path, that's your problem. You should do a
use lib "abc/pm/"; use IDVDb;
The "use" command should always call the module the same as the module's package statement names it.

Replies are listed 'Best First'.
Re: Re: configuring @INC
by Anonymous Monk on May 06, 2004 at 11:54 UTC
    hi
    I tried by giving
    use lib "abc/pm/"; use IDVDb;

    eventhough , it is giving the same error.
    Actual path of "abc/pm/IDVDb.pm" is "/example/abc/pm/IDVDb.pm".
    is there any way to configure @INC variable.
      Well, DUH! use the actual path, then! I used the path you gave in your question and I figured you'd be smart enough to adapt it to the right value yourself.

      Just to make this absolutely clear, if your module is located in /opt/mrn/Foo/Bar/Baz.pm
      and the package line says:
      package Bar::Baz:, then you need to say>
      use lib "/opt/mrn/Foo";