in reply to Re^3: Pre vs Post Incrementing variables
in thread Pre vs Post Incrementing variables

The fact that f( ++$n, ++$n ) passes an alias to $n, rather than the value resulting from the preincrement, is just another broken behaviour.
Note that this behaviour isn't unique to ++.
sub f {say "@_"} my $n = 1; f $n += 2, $n += 2; __END__ 5 5

Replies are listed 'Best First'.
Re^5: Pre vs Post Incrementing variables
by ikegami (Patriarch) on Sep 13, 2010 at 16:33 UTC
    grep, values and lvalue subs also return lvalues. substr, pos and keys can also return lvalues.