home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / perl / 6975 < prev    next >
Encoding:
Text File  |  1992-11-14  |  1.3 KB  |  33 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!convex!convex!tchrist
  3. From: Tom Christiansen <tchrist@convex.COM>
  4. Subject: Re: Wanted: file descriptor management
  5. Originator: tchrist@pixel.convex.com
  6. Sender: usenet@news.eng.convex.com (news access account)
  7. Message-ID: <1992Nov13.214508.26039@news.eng.convex.com>
  8. Date: Fri, 13 Nov 1992 21:45:08 GMT
  9. Distribution: comp
  10. Reply-To: tchrist@convex.COM (Tom Christiansen)
  11. References: <LMJM.92Nov13204226@swan.doc.ic.ac.uk>
  12. Nntp-Posting-Host: pixel.convex.com
  13. Organization: Convex Computer Corporation, Colorado Springs, CO
  14. X-Disclaimer: This message was written by a user at CONVEX Computer
  15.               Corp. The opinions expressed are those of the user and
  16.               not necessarily those of CONVEX.
  17. Lines: 14
  18.  
  19. From the keyboard of lmjm@doc.ic.ac.uk (Lee M J McLoughlin):
  20. :I'm writing a program that needs to process input lines a bit like
  21. :cpp.  In particular I need to be able to implement a #include -like
  22. :mechanism.  So I'm looking for a library that I can use to mangage
  23. :file descriptors so that when I switch file, on an include, I can
  24. :switch back to my original file when I'm done.
  25. :
  26. :If anyone has such a library or can point me at something I can turn
  27. :into such a library I'd be most greatful.
  28.  
  29. Try the cacheout() routine from the Perl library.  I also have
  30. a cachein() routine as well.
  31.  
  32. --tom
  33.