You should write: ...The use statement needs to be outside the BEGIN block, e.g.
my $some_path; BEGIN { $some_path = "/my/path"; } use lib "$some_path/lib";
Dave.
In reply to Re^4: use lib statement with path variable
by dave_the_m
in thread use lib statement with path variable
by sans-clue
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |