Perl 6 Programming/Property Blocks

From Wikibooks, open books for an open world
Jump to: navigation, search

Contents

[edit] Property Blocks

We've seen in the previous chapter the special CATCH block that is used to handle exceptions thrown from the block that the CATCH lives in. In addition to CATCH, there are a number of other special property blocks that can be used to modify the behavior of the block they live in.

Property blocks are lexical in nature: They modify the behavior of the block they are defined in, and they do not effect outer scopes.

[edit] NEXT and LAST Blocks

[edit] PRE and POST Blocks

[edit] KEEP and UNDO Blocks

[edit] Order of Execution

Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox
Sister projects
Print/export