Skip to content

Commit c493227

Browse files
committed
define normal order for init vs final phasers
1 parent 4dbf083 commit c493227

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

S04-control.pod

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Synopsis 4: Blocks and Statements
1313

1414
Created: 19 Aug 2004
1515

16-
Last Modified: 7 Jul 2011
17-
Version: 107
16+
Last Modified: 31 Jul 2011
17+
Version: 108
1818

1919
This document summarizes Apocalypse 4, which covers the block and
2020
statement syntax of Perl.
@@ -1382,7 +1382,9 @@ of these can occur multiple times within the block. So they aren't
13821382
really traits, exactly--they add themselves onto a list stored in the
13831383
actual trait (except for C<START>, which executes inline). So if you
13841384
examine the C<ENTER> trait of a block, you'll find that it's really
1385-
a list of phasers rather than a single phaser.
1385+
a list of phasers rather than a single phaser. In general, initalizing
1386+
phasers execute in order declare, while finalizing phasers execute in
1387+
the opposite order.
13861388

13871389
The semantics of C<INIT> and C<START> are not equivalent to each
13881390
other in the case of cloned closures. An C<INIT> only runs once for

0 commit comments

Comments
 (0)