It's a common mistake to assume that it works this way.
And with some compilers and some versions of Perl it will
work on some platforms for some values of the hash. But in
other cases, pink monkeys may fly out of your nose, your
dog may die and your piano suddenly walks away.
The behaviour of $i = $i ++ in all its variants
is undefined. Anything could happen.