My project is placed in two different locations depends whether I'm on the development environment or on the production environment, therefore I have an enviraonment variable that holds the location according to the environment. The problem is that I need to do:
use lib $projectLocation; # the environment variable I was talking
and this doesn't seem to work, I shouts a lot of error regarding uninitialized values in lib.pm. It seems that this work only when writing the path explicitly, like that:
use lib '/some/location/';
Is there something I can do?