Wednesday, January 5, 2011

perl: clear the screen

use Win32::Console;

$OUT = Win32::Console->new(STD_OUTPUT_HANDLE);
my $clear_string = $OUT->Cls;

print $clear_screen;

No comments: