Dumb perl question

karavite

Registered
I have been writing perl scripts to do little things to manage some of my files and I was wondering how I might do something that is somewhat anal retentive - okay, really anal retentive. I really tried to find answers on various perl sites, but macosx.com is so much easier and responsive!

All I want to do is to know how I can have the terminal output of the script clear so that instead of having continuosly scrolling text each time I enter something, the terminal window will clear and show the new text at the top of the window - basically reproduce the "clear" command, but running from a perl script.

While I'm here, how about opening and/or closing a new terminal window?
 
Simple way: system( "clear" );. Otherwise, go to www.cpan.org and see if any of the Term modules have something like this; I'm guessing that'd be where this capability would lie.
 
Back
Top