in reply to Need help with includes in subdirectories

Perl looks in the special variable @INC for paths to locate modules in. If you issue the command "perl -V", this will tell you the list of paths in your configuration.

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

use Foo::Bar;
This will look for a file called Bar.pm in a directory called Foo off each of these paths.

For more on this see perldoc perlrun

Hope this helps.

--
I'm Not Just Another Perl Hacker