image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
Thread Tools
  #1  
Old February 10th, 2002, 11:32 AM
karavite's Avatar
Registered User
 
Join Date: Mar 2001
Location: Delta Quadrant
Posts: 1,153
Thanks: 3
Thanked 0 Times in 0 Posts
karavite is on a distinguished road
Dumb perl question

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?
Reply With Quote
  #2  
Old February 10th, 2002, 04:02 PM
blb blb is offline
`'
 
Join Date: Apr 2001
Location: CO, USA
Posts: 651
Thanks: 0
Thanked 0 Times in 0 Posts
blb is on a distinguished road
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.
Reply With Quote
  #3  
Old February 11th, 2002, 12:05 PM
karavite's Avatar
Registered User
 
Join Date: Mar 2001
Location: Delta Quadrant
Posts: 1,153
Thanks: 3
Thanked 0 Times in 0 Posts
karavite is on a distinguished road
Yes! That's it. Why was this so hard to find? Oh well, thank you very much.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
probably a dumb question, but well, i thought i'd ask it anyways. GhettoMacBoy Mac OS X System & Mac Software 3 March 15th, 2003 12:10 AM
perl question holmBrew Software Programming & Web Scripting 1 October 9th, 2002 11:18 AM
Perl question - need LWP.pm ksignorini Unix & X11 3 September 18th, 2002 06:18 PM
Understanding my path and running my dumb perl programs karavite Mac OS X System & Mac Software 6 November 22nd, 2001 03:18 PM
Dumb question... solo Hardware & Peripherals 6 September 26th, 2001 06:53 PM


All times are GMT -5. The time now is 05:38 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.