September 2017
Beginner
402 pages
9h 52m
English
The postfix forms of the increment and decrement operators first return the value of the variable and then change their values. We can see that in the following code:
my $n = 42;$n++;say $n; # 43say $n--; # 43
Compare the output of the following example with the program that is shown in the Prefix operators section earlier in this chapter.