in reply to RFC: Draft Q & A: How to clear the screen in a perl program
Actually you can usually just cache the output from qx/clear/ (or qx/tput clear/) and use that. Or use Term::Cap and avoid calling anything external at all.