in reply to Re^2: Modify a variable within curly braces (ASCII Sequence))
in thread Modify a variable within curly braces (ASCII Sequence))

Wait, there's also print "\e[4;${a}H\e[10CEnd here\n"; provided you don't need the value of $a later. (I assume you don't, and the OP only increments it in place only because that way he can interpolate simply $a.)