LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 07-04-2005, 12:17 AM   #1
bahadur
Member
 
Registered: Apr 2004
Distribution: Linux Red Hat
Posts: 141

Rep: Reputation: 15
how to reset the STDOUT twice in PERL


i have this code

Code:
sub func1(){
 
   format STDOUT_TOP

  WRITE SOME THING OVER HERE
.

  format STDOUT
 
  WRITE SOME THING OVER HERE TOO
.

}


sub func 2(){

 format STDOUT_TOP

 WRITE SOME THING AGAIN
.

format STDOUT

 WRITE SOME THING AGAIN
.

}
now the problem is that u cannt format stdout twice in a perl script. but i have to do this because my two different functions print different formatted output to the screen.

so how do i get around this problem>?
 
  


Reply



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
/dev/stdout nbframer Linux - Newbie 6 09-10-2005 04:48 PM
what is stdout stefaandk Linux - Newbie 1 09-06-2005 07:20 PM
stdout to file Machiaveli Programming 8 09-04-2005 08:53 AM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM
stdout with tk? sk8guitar Programming 1 07-30-2003 02:48 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:50 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration