This is the way, except that you should use $RealBin instead of $Bin. $Bin is buggy since it breaks when a symlink to the executable is used.
In this case:
use FindBin qw( $RealBin ); use lib $RealBin;
When you have bin/ and lib/:
use FindBin qw( $RealBin ); use lib "$RealBin/../lib";
In reply to Re^2: use lib "."
by ikegami
in thread use lib "."
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |