The other suggestions are correct, you want to:
use lib '/path/to/modules_src';
But this isn't much fun maintanence wise, because when you move around your application directory you have to update this line of code. The FindBin module, which has come with perl for a while now, takes care of this problem:
use FindBin; use lib "$FindBin::Bin/../modules_src";
This way you can move around the application directory at will and @INC will get set properly without modifying the code.
EDIT:
Based on your application directory's structure, you would want to use:
use FindBin; use lib "$FindBin::Bin/modules_src";
Because the program you are ruuning is in the root of your application directory
In reply to Re: Howto Call Package from a Subdirectory
by trwww
in thread Howto Call Package from a Subdirectory
by neversaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |