in reply to Problems with 'use lib'
Remember that "use" statement is executed at compile time. Most likely your $projectLocation is not initialized. You could do something like this instead:
BEGIN { my $projectLocation = '...'; # somehow initialize this unshift @INC, $projectLocation; } use MyProjectPackage;
|
|---|