Operators are the elements of the syntax of the language which perform actions over their operands and return a result. Perl 6 is a language with dozens of operators. Some of them are inherited from Perl 5 (directly or with modifications), some were invented especially for Perl 6. On top of the set of regular operators, Perl 6 defines the so-called meta-operators and hyper-operators, which extend the meaning of regular operators for working on a group of values.
In this chapter, we will cover the following topics:
- Operator classification
- Unary operators
- Binary operators
- Ternary operator
- Bitwise operators
- Miscellaneous operators
- Operator precedence
- Substitution meta-operators
- Assignment meta-operators
- Negation meta-operators
- Reversed meta-operators
- Creating hyper-operators
- Types of hyper-operations
- Reduction hyper-operators
- Cross hyper-operators
- Zip hyper...