Hi, is there a way to tell the print function to print at the beginning of the line? At the moment, i've cheated by using print "\b\b\b\b\b\b\b\b\b\b\b\b$var"; but it's not very tidy!
what are you printing BEFORE this ?
did you also print a '\n' ? ------------ jamisar
Einfachheit ist das Resultat der Reife. (Friedrich Schiller)
Simplicity is the fruit of maturity.
There will be no newline before it as I want to print a string, then go to the beginning of the line and print another string (essentially over the top of the first string)
printf("abba"
printf("\n\v"
printf("baab"
------------ jamisar
Einfachheit ist das Resultat der Reife. (Friedrich Schiller)
Simplicity is the fruit of maturity.
My program goes round in a loop and prints one string after another to the screen. I just need the printed string to appear in the same place the previous one did instead of being on a new line or appearing after the previous string on the same line...
the samble above works for /bin/printf
for perl change "\n\v" by
"%c%c",10,11 # decimal vaules for \n and \v ------------ jamisar
Einfachheit ist das Resultat der Reife. (Friedrich Schiller)
Simplicity is the fruit of maturity.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.