in reply to Problems with 'use lib'

You say that it is an environment variable. Do you assign the variable to $projectLocation before you use lib. Try printing out $projectLocation before it is used, to see what its value is. Perhaps this will work:
use lib $ENV{projectLocation}; #or whatever the env variable is