in reply to Re: finding the library from test
in thread finding the library from test

Hi Sorry, I do not get what you mean. I am using use lib already and have changed to use ; as follows:
use lib qw(.;../..);
but I still gets Can't locate Data\BackendMap. Can you eloborate?
Thanks.

Replies are listed 'Best First'.
Re^3: finding the library from test
by saintmike (Vicar) on Mar 24, 2006 at 21:44 UTC
    No, I was saying use
    use lib qw(path1); use lib qw(path2);
    or (!) set and environment variable before calling your script.
      well I have tried that but the modules that contain the package is in other directory:

      the tests then restore to what it was.
      Here is my dir structure (all windows):
      tools\DBQuery\Data\BackendMap.pm
      tools\ToolLog\Logging.pm
      test folders:
      tools\DBQuery\test\TstBackEndMap\testbackendmap.t
      so testbackendmap.t need to use Data::BackendMap but it cannot find it event I tried to use use lib
      qw(Data::BackendMap); or somehow I need to supply a reltive path and not the full path because I do not want to
      restrict where the app to be placed in the system thanks