> -----Original Message-----
> From: Barry Carroll [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 20, 2001 9:40 AM
> To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> Subject: RE: Clear
> 
> 
> I'd recommend that you do something like this:
> 
> 1-assign the text clear into a variable, this will save time 
> later on...
> eg:
> 
> $clearScreen = "clear";
> 
> Then:
> 
> system($clearScreen);
> 
> will clear the screen when ever you want to do so - this is 
> just the way i
> do it...
> probably better ways to do it as always ;)

How does this "save time"?

Perhaps you mean to capture the output of the clear command, and then
later use print() to clear the screen:

   my $clear = `clear`;
   ...
   print $clear;

P.S. for the original poster, this is a FAQ:

   perldoc -q "How do I clear the screen?"

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to