Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Pre vs Post Incrementing variables

by tomfahle (Priest)
on Sep 12, 2010 at 08:32 UTC ( #859817=note: print w/ replies, xml ) Need Help??


in reply to Pre vs Post Incrementing variables

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


Comment on Re: Pre vs Post Incrementing variables
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://859817]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (14)
As of 2015-07-06 12:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (74 votes), past polls