home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!usc!howland.reston.ans.net!news.ans.net!fuat
- From: fuat@news.ans.net (Fuat C. Baran)
- Subject: array of file descriptors
- Sender: news@ans.net (News Administrator)
- Message-ID: <1992Dec17.171242.22639@ans.net>
- Date: Thu, 17 Dec 1992 17:12:42 GMT
- Organization: Advanced Network & Services, Inc.
- Lines: 15
-
- Is there a way to store file descriptors (from an open()) in an array?
- I would like to open a set of files, store the open file descriptors
- in an associative array keyed by filename and be able to multiplex
- output to one of the files in a loop where for each line of output I'm
- given a filename. I'd like to check if $filehandles{$filename} is
- defined and if not first open the file.
-
- Thanks in advance. Apologies if this is a FAQ.
-
- --Fuat
-
- --
- Advanced Network & Services, Inc. fuat@ans.net
- 100 Clearbrook Road 914-789-5328
- Elmsford, NY 10523 914-789-5310 (Fax)
-