FindBin for the location of the executable to find libraries relative to the executable.
use lib "$FindBin::RealBin/lib";
Dir::Self for modules that want to load other modules relative to themselves.
use lib __DIR__;
or
use lib __DIR__ . "/..";
ISSUE: is __DIR__ symlink aware - i.e. is it the equivalent of $FindBin::Bin or $FindBin::RealBin?
No comments:
Post a Comment