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

printf( "\r%5s", $_), sleep( /\d/) for reverse "\r** BOOM **\n", 1 .. 5; # :)

Anno

Replies are listed 'Best First'.
Re^3: adding non printable characters in perl's print function
by ikegami (Patriarch) on Feb 21, 2007 at 19:35 UTC
    The purpose of the snippet was to highlight the effect of \r, not to hide it.
      The purpose of my snippet was not to improve yours, let alone correct it. Yours having fulfilled its purpose, I added it as a kind of second step.

      Actually, I only posted it for the little sleep( /\d/) hack. I thought that (and its purpose) made it mildly interesting.

      Anno