# store the terminal escape sequence that clear the screen $clear = `clear`; # then, all you need is to print $clear # anytime you want to clear the screen print $clear; # Bonus : # if you wants to know what the "clear" sequence # looks like (in decimal) foreach ( split(//,$clear) ) { print ord($_),"\n"; }
In reply to Re: (wil) Re: clrscr(); in perl?
by choocroot
in thread clrscr(); in perl?
by navarra_rd
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |