📜 ⬆️ ⬇️

Perl6 - More about blocks (Phasers)

1. Features of working with variables and literals in Perl6
2. Perl6 - Operations on Variables, Anonymous Blocks
3. Perl6 - Conditional Operators, Loops
4. Perl6 - Working with Functions
5. Perl6 - Classes
6. Perl6 - I / O Modules
7. Perl6 - Comments, whitespace, parentheses
8. Perl6 - Operator Overloading
9. Perl6 - Working with Data Types
10. Perl6 - Exception Handling
In the last article, we talked about catching exceptions, which happened in a special nested CATCH block. In fact, this block is a special kind of - Phasers (I just can not translate this word). Phasers are special nested blocks that run under certain conditions. With what to prepare them you will see under a cat.


Consider the main representatives of Phasers:

Also in a separate list are displayed operators that act like Phasers, which are written in lower case:

Well, perhaps it's time to finish. Somehow even a long post turned out because of examples, but I hope you enjoyed it.

')

Source: https://habr.com/ru/post/190778/


All Articles