in reply to Creating Perl5 plugin for Intellij IDEA (Camelcade)

Perl's parsing depends on previously parsed data. Like bareword may be a function if it was declared or defined before with prototype

But, how it works if we are parsing file, that uses package A, which requires package C, which requires package A?

In such situation, we need to parse one of the packages without definistions/declarations data from another package.

Does anyone knows how it really works?

Replies are listed 'Best First'.
Re: Recursive inclusions parsing
by Anonymous Monk on May 13, 2015 at 22:58 UTC

    But, how it works if we are parsing file, that uses package A, which requires package C, which requires package A? Does anyone knows how it really works?

    Most of the time it doesn't work and the poor programmer asks for help :) at which point hes told to stop that :)

    See Exporter behavior / Re: Exporter behavior