in reply to Get module's location savely?
in the main script will add the lib/ subdirectory of the its installation directory to @INC. (Usually... There are some corner cases where FindBin will get things wrong, but I've never run into any of them in the wild.)use FindBin; use lib "$FindBin::Bin/lib";
|
|---|