Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. File Access > Printing to Many Filehandles Simultaneously

Recipe 7.8. Printing to Many Filehandles Simultaneously

7.8.1. Problem

You need to output the same data to several different filehandles.

7.8.2. Solution

If you want to do it without forking, write a foreach loop that iterates across the filehandles:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint