I have a set of intra-dependent Perl projects and would like to use EPIC to work on them. I created one Epic (Eclipse) project for each of my projects and I set dependencies among them using Project|Properties|Project References function.
For each project I also set Perl Include Path (@INC) in Project|Properties|Perl Include Path adding paths to the libraries used by this project.
The problem is the @INC setting does not seem to be transitive; if project B references project A, B's @INC does not incorporate A's @INC automatically. In effect I have to manually add paths from A's @INC to B's @INC to make Epic see all necessary Perl libs.
Can it be done automatically?
Are you aware of the PERL5LIB environment variable, documented in the perlrun manpage?
In your example, you'd need to set PERL5LIB to the union of
@INCvalues in Project A and Project B.As noted, if any of the projects enable taint checking (
#! /usr/bin/perl -T), then hardcoding is the superior option.