> -Original Message-
> From: Remo, Sherwin [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 21, 2002 6:45 PM
> To: '[EMAIL PROTECTED]'
> Subject: How do I start or load a new page
>
>
> Hi!
>
> Is there a command in perl that refreshes the screen? Like
> the clear();
> command in C or the CLS in DOS prompt or CLEAR in Unix.
>
> I would like the script to clear the window when I run it.
> In so that it
> would look more presentabel and info. would be more easy to spot.
The clear command in UNIX just emits a character sequence that is
recognized by the terminal as a clear screen sequence.
So you can just capture this sequence using backticks:
my $cls = `clear`;
Then when you want to clear the screen, just:
print $cls;
If you're on Win32, this won't work. I assume you would need to use
system('cls');
or something similar to clear the screen.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]