my problem is as follows
- I have the lib in location ./abc/def/lib
- I am using it in path ./abc/xyz/lib/tuv/abc.pm
I am running the code from a different location altogether which is something like ./abc/xyz/blah1/blah2/../../ . I'm running the code here.
I have created env params
setenv def ./abc/def
setenv xyz ./abc/xyz
I tried the below solutions
Begin { push(@INC, $ENV{def}."/lib" ) }
Along with the providing the path for other libraries i used use lib $ENV{xyz}."/lib"This solution didn't work. I get the error saying the library in ./abc/def/lib is not included.
I tried the FindBin
# for the libs present in ./abc/def/lib use FindBin; use lib "$FindBin::Bin/../../"; use mylib::abc; use mylib::def;
(I tried giving the path also of root from where to start looking..in FindBin)
I tried using different combinations but not sure why it doesn't work. Can someone point out what i am doing wrong or is my understanding of FindBin wrong.