home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / perl / 6854 next >
Encoding:
Internet Message Format  |  1992-11-04  |  763 b 

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!elroy.jpl.nasa.gov!ncar!noao!amethyst!organpipe.uug.arizona.edu!argon!starkg
  2. From: starkg@argon.gas.uug.arizona.edu (Gavin E Stark )
  3. Newsgroups: comp.lang.perl
  4. Subject: Help with reading to and writing from program.
  5. Message-ID: <starkg.720939960@argon>
  6. Date: 5 Nov 92 05:06:00 GMT
  7. Sender: news@organpipe.uug.arizona.edu
  8. Organization: University of Arizona - Tucson, Arizona
  9. Lines: 15
  10.  
  11.  
  12. I'd like to be able to send input to a program and read the output from it.
  13. Unfortunately this doesn't seem to work:
  14.  
  15. open(BLAH,"| someprogram |");
  16.  
  17. I'd like to be able to send a single line to the BLAH handle and then loop
  18. and read lines coming from it.   Is this possible?
  19.  
  20.  
  21. --
  22.  
  23.  
  24. Gavin Stark
  25. starkg@gas.uug.arizona.edu
  26.