home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / shell / 3077 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  1.3 KB

  1. Xref: sparky comp.unix.shell:3077 comp.lang.perl:4847
  2. Path: sparky!uunet!ogicse!reed!romulus!merlyn
  3. From: merlyn@romulus.reed.edu (Randal L. Schwartz)
  4. Newsgroups: comp.unix.shell,comp.lang.perl
  5. Subject: Re: How to compile a shell script?
  6. Message-ID: <MERLYN.92Jul21090055@romulus.reed.edu>
  7. Date: 21 Jul 92 16:01:00 GMT
  8. Article-I.D.: romulus.MERLYN.92Jul21090055
  9. References: <1992Jul21.121804.24643@cis.ohio-state.edu> <14h0jrINNvd@betty.cs.widener.edu>
  10. Sender: news@reed.edu (USENET News System)
  11. Organization: Reed College
  12. Lines: 18
  13. In-Reply-To: brendan@cs.widener.edu's message of 21 Jul 92 12:40:27 GMT
  14.  
  15. In article <14h0jrINNvd@betty.cs.widener.edu> brendan@cs.widener.edu (Brendan Kehoe) writes:
  16.    Someday someone will write sh2perl.  (Note you'd probably only really
  17.    win on things that were more procedurally heavy than exec'ing a lot of
  18.    different shell commands for various things.)
  19.  
  20. OK, here's sh2perl: :-)
  21.  
  22. #!/usr/bin/perl
  23. print "#!/usr/bin/perl\nsystem <<'UnlikelyString'\n",<>,"\nUnlikelyString\n";
  24.  
  25. There.  Too easy. :-)
  26.  
  27. print "Just another Perl hacker," # in chicago.  can't be creative. :-)
  28.  
  29. --
  30. Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
  31. merlyn@reed.edu (guest account) merlyn@ora.com (better for permanent record)
  32. cute quote: "Welcome to Portland, Oregon -- home of the California Raisins!"
  33.