in reply to post-increment/pre-increment blues

2 $i == 11+1 
2 $i == 2,1+1 
5 $i == 33+2, tricky, post-- precedence
10 $i == 55+5, It's not what I expected.
14 $i == 77+6+1, nor this
Apparantly pre-increment returns an alias.

++wil, you taught me something :)

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: post-increment/pre-increment blues
by paul (Initiate) on Jul 20, 2002 at 01:35 UTC
    I should probably point out that wil's post and explanation are not his own and are blatantly copied from: http://gossamer-threads.com/perl/gforum/gforum.cgi?post=199967; Your da man Wil!