πŸ“˜ 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

Your email address will not be published. Required fields are marked *