ns550 has asked for the wisdom of the Perl Monks concerning the following question:
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Accesing Module directory (use lib goes in scripts)
by Anonymous Monk on Apr 30, 2015 at 06:31 UTC | |
|
Re: Accesing Module directory
by vinoth.ree (Monsignor) on Apr 30, 2015 at 08:29 UTC | |
|
Re: Accesing Module directory
by ns550 (Novice) on May 11, 2015 at 06:43 UTC |