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
Science, Programming, Electronics, Languages
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