clear - clear the screen
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.
Jeffrey S. Haemer
clear should probably take an argument, like yes, that will let users send arbitrary termcap sequences, with cl as the default.
To install PerlPowerTools, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.