Whatever is the problem with print("\e[4;" . ($a += 10) . "HEnd Here $a\n"); ?
Indeed, and whatever would be the problem with
$a += 10;
print("\e[4;${a}HEnd Here $a\n");
I have to say that, while it will work (and other, similar solutions could be found), BrowserUk's solution falls into the category of Stupid Interpolation Tricks in the context of the problem of the OP. I hope westrock2000's original question was prompted by pure curiosity and not by any inclination to actual use, for if westrock2000 tries to use this or a similar trick in production code, he or she had better be sure none of the maintainers of said code know where he or she lives!
In reply to Re^2: Modify a variable within curly braces (ASCII Sequence))
by AnomalousMonk
in thread Modify a variable within curly braces (ASCII Sequence))
by westrock2000
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |