That won't work if you call the script via symlink. You need to use $RealBin.
use FindBin qw( $RealBin ); use lib "$RealBin/../lib";
In reply to Re^2: Instance of 'use lib' won't accept relative path
by ikegami
in thread Instance of 'use lib' won't accept relative path
by Lady_Aleena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |