Tim Bunce <tim.bu...@pobox.com> writes: > On Tue, Nov 02, 2010 at 10:36:25AM -0400, Chas. Owens wrote: > > are full of "unless", "So long as" and "In those cases" indicates a > problem. > > The description of BEGIN and UNITCHECK suggests that the documentation > is approaching the topic from the wrong point of view. I suggest > removing the above and just saying something like: > > BEGIN and UNITCHECK blocks are unrelated to the phase of the > interpreter. They can be created and executed during any phase.
I like the suggestion, but I'm not sure it's entirely true. "Anything directly or indirectly run from a BEGIN-block in the top-level compilation unit" exactly describes when ${^GLOBAL_PHASE} will be set to "START". That may or may not be a good way to think about the START phase. For UNITCHECK it's right.
pgpzeKWrMkDYG.pgp
Description: PGP signature