pankaj verma has asked for the wisdom of the Perl Monks concerning the following question:

thanks everyone. for your support

Replies are listed 'Best First'.
Re: how perl interpreter works?
by LanX (Saint) on Sep 27, 2013 at 17:01 UTC
      thanks rolf.

      i have read it but it is something more about perl internals with it's c modules.

      what i want to know is ,if perl is a two way interpreter then what is does in these Two ways(what in first and what in second one).
        plz explain "two way interpreter"

        Cheers Rolf

        ( addicted to the Perl Programming Language)

        ps: Then plz see How do I post a question effectively?

        First and foremost, think through your question. Can you explain it clearly to yourself? Can you explain it to others? What example data would help them understand the issue? What's not happening that you think should happen, or happening th +at you think should not (or don't understand)?
Re: how perl interpreter works? ("two pass compiler" ?)
by LanX (Saint) on Sep 27, 2013 at 17:54 UTC
Re: how perl interpreter works?
by kcott (Archbishop) on Sep 28, 2013 at 10:30 UTC

    G'day pankaj verma,

    Welcome to the monastery.

    "perlmod: BEGIN, UNITCHECK, CHECK, INIT and END" may be sufficient for your needs. It contains an example script that reports what's happening from where the interpreter starts the compilation phase (BEGIN); the various stages between the compilation and execution phases (UNITCHECK, CHECK and INIT); through runtime to where the interpreter exits (END).

    If you're after more technical details, see the links in "perl: Internals and C Language Interface". You'll find the perlinterp link, recommended by LanX above, in this section.

    -- Ken

Re: how perl interpreter works?
by Anonymous Monk on Sep 27, 2013 at 17:17 UTC
    Every interpreter is pretty-much the same: the source-code is assimilated (from its various origin files) and parsed to create an internal data-structure which is then what drives the perlguts of the interpreter itself. When you read about "compile-time," that's the time spent building that structure.