📘 Postfix operator ++ in Perl 6

📘 Postfix operator ++ in Raku

N. B. Perl 6 has been renamed to Raku. Click to read more.


Postfix operators are unary operators placed after their single operand.

++ is a postfix increment. The change of the value happens after the current value is used in the expression.

my $x = 42;
say $x++; # 42
say $x;   # 43

Leave a Reply