home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / perl / 5752 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.6 KB  |  41 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!decwrl!spool.mu.edu!darwin.sura.net!convex!convex!tchrist
  3. From: Tom Christiansen <tchrist@convex.COM>
  4. Subject: Re: Piping to and from a unix command
  5. Originator: tchrist@pixel.convex.com
  6. Sender: usenet@news.eng.convex.com (news access account)
  7. Message-ID: <1992Sep6.135811.1282@news.eng.convex.com>
  8. Date: Sun, 6 Sep 1992 13:58:11 GMT
  9. Reply-To: tchrist@convex.COM (Tom Christiansen)
  10. References: <1992Sep5.000616.5940@walney.com>
  11. Nntp-Posting-Host: pixel.convex.com
  12. Organization: Convex Computer Corporation, Colorado Springs, CO
  13. Keywords: unix pipe perl
  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: 22
  18.  
  19. From the keyboard of jimrutt@walney.com (Jim Rutt):
  20. :
  21. :
  22. :There's an intriguing aside in the O'Reilly & Assoc PERL book page 163 
  23. :in the description of the Open function speaking of using the open 
  24. :function to open a pipe to a unix command:
  25. :
  26. :    "you may not have an open pipe command that pipes both in 
  27. :         and out, though it's easy to build using the _pipe_
  28. :         and _fork_ commands."
  29. :
  30. :Unfortunately as a not very expereinced UNIXer and "C"er, fork and pipe
  31. :just aren't very intuitive for me yet.  
  32.  
  33. Check out open2.pl in the Perl library.
  34.  
  35. --tom
  36. -- 
  37.     Tom Christiansen      tchrist@convex.com      convex!tchrist
  38.     And don't tell me there isn't one bit of difference between null and space,
  39.     because that's exactly how much difference there is.  :-)
  40.             --Larry Wall in <10209@jpl-devvax.JPL.NASA.GOV>
  41.