Re: Documentation for ${^GLOBAL_PHASE}

[email protected] (Florian Ragwitz) Thu, 04 Nov 2010 12:11:39 +0100
Newsgroups perl.perl5.porters,perl.documentation
Message-ID <[email protected]>
--=-=-=
Content-Type: text/plain

Tim Bunce <[email protected]> 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.

--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkzSlOwACgkQdC8qQo5jWl6UgQCfXr4QAALsH7PCcjlprHUIfUol
1MAAn0v6tN/cftgoaME61MiW26SGATmH
=zNhv
-----END PGP SIGNATURE-----
--=-=-=--