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

Re: Quantum Weirdness and the Increment Operator

by hv (Parson)
on Jun 24, 2004 at 13:32 UTC ( #369350=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      $m = 20;              # $m == 20
      ++$m;                 # $m == 21
      $temp1 = $m++         # $m == 22, $temp1 == 21
      $temp2 = $m + $temp1  # 22 + 21 = 43
      print $temp2
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://369350]
help
Chatterbox?
[Cosmic37]: you are right $mydt did not contain what I expected... :-D I will now think :-D
[Cosmic37]: crunch...grind... whirr...gnashing metal crunching cogs...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2017-06-29 17:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (673 votes). Check out past polls.