in reply to What is an INIT block?

The camel book goes in to a bit more detail in chapter 18, Compiling, when describing the life cycle of a perl program. I'll try to summarize here but basically you are correct.

First, the program is compiled into a parse tree. Any BEGIN blocks encountered along the way are handed to the interpreter as soon as they are compiled in a FIFO order.

Next, in the (optional) code generation phase, any CHECK blocks are run..."CHECK blocks are installed by code geneerators, so this optional phase occurs when you explicitly use one of the code generators...These convert the compiled (but not yet run) program into either C source code or serialized Perl bytecodes..."

Next the parse tree is reconstructed if needed (depending on what happened above)

Finally the execution phase comes (run phase). Just before the main program itself starts running the INIT blocks are run in FIFO order, then the main program itself runs.

I hope I got that all right, since I don't know a whole lot about the code generation phase and parse tree reconstruction phase (and CHECK blocks), so perhaps someone else can elaborate further on that.

If you are really interested in this, I would highly suggest the Camel book, Programming Perl 3rd Edition as it goes in to a lot more detail which is hard to describe here. It also happens to be an excellent book.