We don't bite newbies here... much | |
PerlMonks |
Re^2: Prefix and postfix increment/decrement operator queryby saurabh.hirani (Beadle) |
on Jul 03, 2009 at 04:46 UTC ( [id://776934]=note: print w/replies, xml ) | Need Help?? |
Did you mean "...11 instead of 10..." since you initialize your variable to 10 rather than to 20?
I was talking about the answer of the operation $a++ + $a--. But yes, as per your observation.the value of $a should be 11 instead of 10.
In Section
Seekers of Perl Wisdom
|
|