I’m using Eclipse Perl Integration Plugin (EPIC) for developing with Perl. All its functions work great with Perl files (*.pl), but there are problems with Perl modules (*.pm) (I add them to the same project, so project settings are the same): on-the-fly syntax check does not work for them, so that I can’t see any errors while coding.
Is it a bug or do I need to recheck any settings?
Thank you.
I’m using Eclipse Perl Integration Plugin (EPIC) for developing with Perl. All its functions
Share
It turned out that Perl couldn’t locate current module name in
@INC, which I included to use another modules in my current module – that’s whyperl -cwas interrupted by error inside of theBEGINblock.It caused the compiler to abort prematurely, which stopped the syntax check.
One of the possible solutions is to just use
__FILE__instead of$INC{'ThisModule.pm'}.More info about my concrete situation can be found in this SO answer.
And the cause of the problem was found out thanks to the following EPIC support forum topic.