@JavaFan - I meant -
perl -le '$a = 10; print $a++ + $a--'
Sorry for missing out on the print statement.
Thanks davorg, wfsp for pointing to perlop and the Autoincrement magic link. I guess as it is undefined behavior I will leave it at that.
In reply to Re^2: Prefix and postfix increment/decrement operator query
by saurabh.hirani
in thread Prefix and postfix increment/decrement operator query
by saurabh.hirani
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |