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;
In reply to Re: Problems with 'use lib'
by lestrrat
in thread Problems with 'use lib'
by hotshot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |