in reply to Need help with includes in subdirectories
If you want to add more paths, you have two options: adding the line use lib '/home/mydir'; will add mydir to the list of paths that are searched, before any paths in the config. The alternative is to define the environment variable PERL5LIB to be a colon separated list of paths (like PATH). This has the advantage of not requiring any script changes.
Note that @INC etc. are referring to root directories, hence if the code says
This will look for a file called Bar.pm in a directory called Foo off each of these paths.use Foo::Bar;
For more on this see perldoc perlrun
Hope this helps.
--
I'm Not Just Another Perl Hacker
|
|---|