in reply to Re: "possible typo" warnings in modules
in thread "possible typo" warnings in modules
You are wrong. There is no separate check for "syntax errors" and later for "evaling." It sounds like your mental model of perl's internal workings are far off. Perl compiles into the same form, always. This form is directly executable. Code that is present at a module's file or "top" level is run just as soon as the file has finished being compiled.
I have the impression that you think perl is executing the statements by uh "evaling" them as source code at runtime kind of like bash or DOS batch files. That is far from the truth. The directly executable form I already mentioned is closer to being like an internal or hidden lisp. As perl reaches each instruction, it just follows a C function pointer to run each instruction. Every instruction returns the address of the next instruction in memory so the runloop does this very much like for ( $op = START; $op = $op->(); ){}.
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: "possible typo" warnings in modules
by zentara (Cardinal) on Feb 17, 2007 at 19:13 UTC | |
by diotalevi (Canon) on Feb 17, 2007 at 19:27 UTC | |
by zentara (Cardinal) on Feb 17, 2007 at 19:47 UTC | |
by diotalevi (Canon) on Feb 17, 2007 at 20:51 UTC | |
by Joost (Canon) on Feb 17, 2007 at 20:55 UTC |