in reply to ADD directory to @INC using a string variable
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: ADD directory to @INC using a string variable
by sid9559 (Novice) on Sep 23, 2013 at 15:32 UTC | |
by Anonymous Monk on Sep 23, 2013 at 16:30 UTC |