in reply to finding the library from test

Use several use lib lines or a colon-separated (semicolon on Win32) list for the PERL5LIB environment variable.

Replies are listed 'Best First'.
Re^2: finding the library from test
by edwardt_tril (Sexton) on Mar 24, 2006 at 20:04 UTC
    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.
      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