LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 01-09-2006, 06:24 PM   #1
Jerry Draper
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Rep: Reputation: 0
locate/print text in perl on screen


I want to print a record counter in the middle of my screen while reading a file. In basic I would:

rec=rec+1
locate 15, 30
print rec;

How can I do this in Perl?

TIA

Jerry
 
Old 01-09-2006, 09:22 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
To do GUI work in Perl, you'll need Perl/Tk (see also Tcl). Try these sites :
http://www.perltk.org/ , http://www.perlmonks.com/, http://search.cpan.org/ .
HTH
 
Old 01-10-2006, 11:36 AM   #3
Jerry Draper
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Without getting into GUI stuff is there a way to just put some simple text on the screen?

J
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HP PS7150: text doesn't print in OOO and Abiword!, but I can print test page & w MzFF gabba Mandriva 6 10-31-2005 11:10 AM
perl problem- can't locate sys/sochet.ph oddo Linux - Software 1 02-07-2005 06:13 PM
Perl-how to print to file satimis Programming 4 11-17-2004 10:56 PM
Perl undefined subroutine /can't locate object method cobien Programming 1 11-17-2003 10:47 AM
Perl print Multiline help! CragStar Programming 1 02-06-2002 08:48 AM


All times are GMT -5. The time now is 02:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration