[Israel.pm] Simple terminal manipulation

Omer Zak omerz at actcom.co.il
Thu Feb 2 09:06:54 PST 2006

On Thu, 2006-02-02 at 12:18 +0100, Madani, Srikanth, VF-DE wrote:

> I also want to use a similar construct in the context of:
> 	Number of rows inserted: 1003
> and then keep replacing 1003 with the actual number of rows inserted
> etc.
> Am on a Unix machine, using Perl v5.8.1.

For this purpose, \r works nicely.  Print a line, without ending it with
\n, and when you want to overwrite it, start the new text with \r.

This does not work when you want to overwrite more than one line.  This
is why I snipped the first part of your letter.
                                                    --- Omer
Eli Marmor's Law:  netiquette forbids people from replying "I agree with
you" to messages in mailing lists, skewing discussions in favor of the
troublemaker type of dissenters.
My own blog is at http://tddpirate.livejournal.com/

My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html

More information about the Perl mailing list