in reply to Re: use lib "."
in thread use lib "."
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";
|
---|