http://www.perlmonks.org?node_id=1172557


in reply to Re^2: Pre vs Post Incrementing variables
in thread Pre vs Post Incrementing variables

Hello, I don't see exactly how this is related to the overall thread, so you may benefit from starting a new one.

Either way, the best way of getting an answer regarding your problem is giving more context, mainly, the part of the program that is giving you the unwanted output, and what is the wanted output, since it's entirely unclear (to me) from the example you give here.

Hope this helps

Principle of Least Astonishment: Any language that doesn’t occasionally surprise the novice will pay for it by continually surprising the expert