in reply to Re: use lib $lib_dir not working
in thread use lib $lib_dir not working

This is an excellent suggestion.   FindBin will tell you where the script is actually executing.   It gives you a string, and you can go from there.

It is a good idea to specify, one way or the other, fully qualified path names.