in reply to adding non printable characters in perl's print function

Control-M is carriage return without linefeed. ":Hello " is printed, then the print position returns to the start of the line and "World:" overwrites it.

That is often used for text-mode progress counters and spinners.

After Compline,
Zaxo

  • Comment on Re: adding non printable characters in perl's print function