Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: Perl bug ?

by tinita (Parson)
on Feb 06, 2013 at 12:42 UTC ( #1017411=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Perl bug ?
in thread Perl bug ?

no? I don't see your example as a proof for that.
argument 1: $x=0 $x is set to 0 and $x (or an alias) is passed as argument 1
argument 2: $x=$x+1 $x is set to 0+1 = 1 and $x (or an alias) is passed as argument 2
argument 3: $x++ $x is incremented and the return value of the post increment (1) is passed as the argument 3
argument 4: ++$x $x is incremented and the return value of the pre increment (3) is passed as argument 4.

$x is now 3.
argument 1 is an alias for $x. 3
argument 2 is an alias for $x. 3
argument 3 is 1.
argument 4 is 3.


Comment on Re^4: Perl bug ?
Select or Download Code
Re^5: Perl bug ?
by choroba (Abbot) on Feb 06, 2013 at 12:46 UTC
    You are right. I was on a wrong track.
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-07-29 04:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (211 votes), past polls