develooper Front page | perl.perl5.porters | Postings from November 2003

Re: [DOCPATCH] BEGIN, CHECK, INIT, END explained more

Thread Previous | Thread Next
From:
Ronald J Kimball
Date:
November 29, 2003 15:23
Subject:
Re: [DOCPATCH] BEGIN, CHECK, INIT, END explained more
Message ID:
20031129224147.GA40214@penkwe.pair.com
On Sat, Nov 29, 2003 at 11:15:56PM +0100, Elizabeth Mattijsen wrote:

> --- pod/perlmod.pod.original	Sat Nov 29 21:39:52 2003
> +++ pod/perlmod.pod	Sat Nov 29 23:00:46 2003

> +A C<BEGIN> CODE block is executed as soon as possible, that is, the moment
> +it is completely defined, even before the rest of the containing file (or
> +string) is parsed.  You may have multiple C<BEGIN> blocks within a file (or
> +string) -- they will execute in order of definition.  Because a C<BEGIN>

I think 'string' here should be 'eval string' (or 'evaled string').
Otherwise someone may think BEGIN {} blocks are executed in any string.



> --- pod/perlsub.pod.original	Sat Nov 29 22:12:17 2003
> +++ pod/perlsub.pod	Sat Nov 29 22:50:01 2003
> @@ -202,13 +202,17 @@

> +The C<BEGIN>, C<CHECK>, C<INIT> and C<END> subroutines are not so much
> +subroutines as well as named magic CODE blocks, of which you can have more

I think 'as well as' should just be 'as'.


Ronald

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About