home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / perl / 7562 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.0 KB  |  32 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!panther!mothost!merlin.dev.cdx.mot.com!fendahl.dev.cdx.mot.com!mcook
  3. From: mcook@fendahl.dev.cdx.mot.com (Michael Cook)
  4. Subject: Re: Is this a perl bug?
  5. Message-ID: <mcook.724908792@fendahl.dev.cdx.mot.com>
  6. Sender: news@merlin.dev.cdx.mot.com (USENET News System)
  7. Nntp-Posting-Host: fendahl.dev.cdx.mot.com
  8. Organization: Motorola Codex, Canton, Massachusetts
  9. References: <9212111642.AA27958@brimstone.unipalm.co.uk> <1992Dec12.072651.653@netlabs.com> <mcook.724207619@fendahl.dev.cdx.mot.com> <1992Dec14.175649.22784@netlabs.com>
  10. Date: Mon, 21 Dec 1992 03:33:12 GMT
  11. Lines: 19
  12.  
  13. lwall@netlabs.com (Larry Wall) writes:
  14.  
  15. >: And open(FH,"|-",'cat',$foo) could be like open(FH,"|cat $foo"), except that
  16. >: it would be done directly via exec, not via "sh -c".
  17.  
  18. >I don't see the point, when
  19.  
  20. >    open(FH, "|-") || exec 'cat', $foo;
  21.  
  22. >does the same thing.  In fact, so does
  23.  
  24. >    open(FH, "|cat $foo");
  25.  
  26. >as long as $foo contains no shell metacharacters.
  27.  
  28. Yes, you're right, of course.
  29. It just seems so natural...
  30.  
  31. Michael.
  32.