home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / perl / 5407 < prev    next >
Encoding:
Text File  |  1992-08-20  |  1.1 KB  |  26 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!sdd.hp.com!decwrl!csus.edu!sfsuvax1.sfsu.edu!eburk
  3. From: eburk@sfsuvax1.sfsu.edu (Eli Burk)
  4. Subject: system & exec questions
  5. Message-ID: <1992Aug20.234826.28608@csus.edu>
  6. Originator: eburk@sfsuvax1.sfsu.edu
  7. Sender: news@csus.edu
  8. Organization: San Francisco State University
  9. Date: Thu, 20 Aug 1992 23:48:26 GMT
  10. Lines: 14
  11.  
  12. I am having some difficulty understanding how to use perl
  13. system & exec functions. As an example if I have @list
  14. and I want to send this out to my system (unix) what is
  15. the best wa? As an example I want to use unix "pr"
  16. the following is from memory - but it shows the basic idea...
  17. csh script fragment (cal 9 1992; cal 10 1992) | pr -t -2
  18. How do I acomplish the same thing in perl? If I pass the 
  19. "cal"s to @list how can I then pipe @list to "pr"?
  20.  
  21. -- 
  22. ..out in the street, with your cheap fur on, or maybe your plastic raincoat
  23. and your plastic shoes, they look good too, standing in the snow you're young-
  24. er than you look, {fall in love with me} 2X, how i wish you would...[Iggy Pop]
  25. eburk@futon.sfsu.edu -or- eburk@sutro.sfsu.edu -or- eburk@sfsuvax1.sfsu.edu
  26.