I have a script that uses modules that are external to the standard Perl library and would like for some way to use them. I don't have permissions to install them into the Perl lib directory and was wondering if I could just have these external modules reside in my scripts directory.
I have read about using FindBin but it seems to not work. Am I using it correctly?
Right now I want to use 3 modules I want to use (2 being directories). So lets say my script is in Dir1, then my modules will be in a subdirectory of Dir1 called Dir2.
So assuming FindBin finds Dir1, then all I have to do is this?
use FindBin '$Bin';
use Dir2 "$Bin/Dir2";
use Dir2::SubDir_ofDir2_1::Module1;
use Dir2::Module2;
use Dir2::Module3;
My program seems to run but it doesn't do anything. So I am pretty sure it is not importing the modules correctly.
Thanks