Electron One wrote:
> I've thought of having everybody map their network to some computer,
> located on the network, and using that mapped network, call each individual
> perl script. That would work fine except for two problems. For one, not
> everybody can map to the same network drive. For example, some people may
> have the "G:" available to map to that computer, where as other people may
> have "G:" already mapped to something else, and may need to use a different
> letter. etc...This problem is only an issue with XYZ.pl, because inside of
> file.pl I have to hard code where XYZ.pl is. So I cant say do 'G:xyl.pl';
> since not all people will have the G: drive free, some may need to use F:
> Any suggestions?
Maybe try storing the path to this directory in a file, and read it in
open DIR, '<', 'path.txt' or die;
my $dir = <DIR> or die;
use lib $dir;
This will load YourModule.pm from wherever the path.txt points to. Every
user of your program will have to set this path once, and all of them
can use the same version of your program without any hardcoded path.
Is that what you need?