I typically use something like:
$clear = `clear`;
print "$clear";
Make sure the clear command is in your path ('which clear' from the shell
will tell you if/where it is).
Saving the results of the clear command to a variable saves you from having
to make a system call every time you want to clear the screen (helpful if
it is something you are doing often in the program).
Rob Genovesi
[EMAIL PROTECTED]
At 10:36 AM 1/25/2002 -0800, you wrote:
>Hello ABhagwandin,
>
> You could use system(clear) inside of your perl script.
>
>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Friday, January 25, 2002 10:29 AM
>To: [EMAIL PROTECTED]
>Subject: clearing the screen...
>
>
>I know that in Bourne Shell programming, you can use a command such as 'tput
>clear' to clear the screen for you. Is there something similar in Perl?
>
>--
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]