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

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!ftpbox!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.724207619@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: <1992Dec6.232905.13545@reed.edu> <1992Dec8.175616.20198@netlabs.com> <9212111642.AA27958@brimstone.unipalm.co.uk> <1992Dec12.072651.653@netlabs.com>
  10. Date: Sun, 13 Dec 1992 00:46:59 GMT
  11. Lines: 16
  12.  
  13. lwall@netlabs.com (Larry Wall) writes:
  14.  
  15. >Similarly, `cat $foo` turns into something like backtick('cat ' . $foo),
  16. >though I haven't actually put in a keyword to access that function yet.
  17.  
  18. Cool.  Would we be able to do something like this: backtick('cat',$foo), which
  19. would be analogous to system('cat',$foo) vs. system("cat $foo")?
  20.  
  21. And how about having it so the file name in open() can be separated from the
  22. directive characters: open(FH,">",$foo).  That way, it would still work even
  23. if the file name had funny characters (such as leading/trailing whitespace).
  24.  
  25. And open(FH,"|-",'cat',$foo) could be like open(FH,"|cat $foo"), except that
  26. it would be done directly via exec, not via "sh -c".
  27.  
  28. Michael.
  29.