Try use lib hardcoded_path_name;. The use directives are executed at compile time, before the variables used in the code are set.
Else you could set your variable in a BEGIN block, just prior to using it.
In reply to Re: ADD directory to @INC using a string variable
by Laurent_R
in thread ADD directory to @INC using a string variable
by sid9559
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |