in reply to Can't locate Modules/test.pm in @INC
ought to be sufficient. Then all modules in ANYWHERE in the $SOURCE_ROOT tree will be addressable as subdir::subdir:: etc ::use lib $ENV{ SOURCE_ROOT };
BUT, rather than have to make a header for ALL your .pl files, it might be worth putting the following in your group login scripts (although in that case for every environment using the software so will need to be put in the next deployment script):
which has the same effect, but without needing to modify your .pl files at all!!export PERL5LIB=$SOURCE_ROOT:$PERL5LIB
-M
Free your mind
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can't locate Modules/test.pm in @INC
by Anonymous Monk on Feb 22, 2007 at 11:15 UTC | |
by Anno (Deacon) on Feb 22, 2007 at 12:57 UTC | |
by Moron (Curate) on Feb 22, 2007 at 12:21 UTC |