in reply to How to call my own perl module from a folder

There are several alternatives. You could set the directory name to environment variable PERL5LIB.

Or you could:
use lib '\etc\usr\lib';
If I understood your tree correctly. It is best to use the full path name, in case scripts are moved.
If you don't like hard-coding a path, and you don't like PERL5LIB then you can use your own environment variable:
use lib $ENV{MY_PERL_LIB};
Alternatively you can manipulate @INC directly in a BEGIN block, but you probably want to avoid that unless you have a good reason.

Replies are listed 'Best First'.
Re^2: How to call my own perl module from a folder
by KarthikK (Sexton) on Aug 05, 2008 at 12:43 UTC
    Thanks guys
    I dont want to do a make its just a plain perl module in different folder.
    i will try this possibilities..thanks a lot