clear - clear the screen
clear
Look in the termcap database, find the character to clear the screen, and emit it.
This is a direct lift from Section 15.7, Ringing the Terminal Bell, from Perl Cookbook, with cl substituted for vb.
cl
vb
Jeffrey S. Haemer
clear should probably take an argument, like yes, that will let users send arbitrary termcap sequences, with cl as the default.
Term::Cap(3)
To install PerlPowerTools, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PerlPowerTools
CPAN shell
perl -MCPAN -e shell install PerlPowerTools
For more information on module installation, please visit the detailed CPAN module installation guide.