September 2017
Beginner
402 pages
9h 52m
English
In Perl 6, there is a set of postfix operators that are used with objects. For example, we have used the . operator to call methods on objects, say, on integers or strings:
say 42.Str; # 42say 'Hello'.WHAT # (Str)say 'UP'.lc; # up
We will examine other OOP-related postfix operators in Chapter 8, Object-Oriented Programming. These are the following operators—.&, .=, .^, .?, .+, .*, .:, and .::.
Read now
Unlock full access