Good Day PerlMonks
I have written some perl modules to perform some functions and put them all in a directory.
At the moment, every module has something like the following in it...
use lib 'C:\My\Module\Directory';
use myModule1 qw(:All);
use myModule2 qw(:All);
...
Unfortunately, if I move the folder then the modules can't use each other because they suddenly don't know where they are.
While I am happy to update the folder locations by modifying the module files every time I move them, it is not elegant and prone to breakage, can't be sent to other people, etc...
I was wondering if there was a more elegant solution to this problem than specifying a directory in every file. Is there a better way of organising these module files?