in reply to Re^3: use lib statement with path variable
in thread use lib statement with path variable

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.

Replies are listed 'Best First'.
Re^5: use lib statement with path variable
by Eily (Monsignor) on Dec 04, 2013 at 21:47 UTC

    Thanks, corrected :)