I would only add that if the scripts and the modules are going to maintain their relative positions in the file system before and after a move, then no change is required with
use lib "$FindBin::Bin/../path/to/modules";
However if there's a risk that the modules might move in relation to the scripts, then huck's solution is certainly more flexible.
Thanks,
cbeckley
In reply to Re^4: Trouble finding modules from cron
by cbeckley
in thread Trouble finding modules from cron
by faineant
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |