On Mon, Jul 02, 2001 at 12:24:15PM -0700, Wagner-David wrote:
>       You are correct. I believe that the backticks work on the shell, so
> I replace `cls` with system("cls") and at least my screen cleared as it was
> suppose to.

Given the code shown, you have to print $clear for the screen to actually be
cleared.  The backticks are there intentionally; they're there to retrieve
the sequence required to clear the screen once, so it can be stored in
$clear and used as many times as desired.


> -----Original Message-----
> From: Craig S Monroe [mailto:[EMAIL PROTECTED]]
[snip]
> my $clear;
> if ($^O =~ /mswin/i || $^O =~ /dos/i) {
>  $clear = `cls`;
> } 
> elsif ($^O eq 'linux') {
>  $clear = `clear`;
> }


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

Reply via email to