in reply to Help me to understand increment / decrement operator behavior in perl

This probably falls in a similar category as discussed in 1118529. After all, you compare $a to $a while changing it at the same time.