http://www.perlmonks.org?node_id=774605


in reply to how to erase screen output?

Is something like the below one??? But it is not good solution (if prints for large number) as it is executing the system function for every print.

ikegami++ has given perfect solution. :-)

update: removed the code. Wrong solution.

Prasad