http://www.perlmonks.org?node_id=859817


in reply to Pre vs Post Incrementing variables

See Just the FAQs: Precedence Problems for an in depth explanation and perlop.

Replies are listed 'Best First'.
Re^2: Pre vs Post Incrementing variables
by moritz (Cardinal) on Sep 12, 2010 at 08:40 UTC
    I don't see how this is a precedence problem, ++ has tighter precedence than the comma, both for pre- and post increment - no surprises here.

    Also adding parens around the (++$i) doesn't change anything.

    Perl 6 - links to (nearly) everything that is Perl 6.